c# - CloudTable ExecuteQuery async -


is possible run executequery asynchronously?

consider following code:

public virtual myentity mymethod(string parm1, string parm2) {      string querystring = tablequery.combinefilters(tablequery.generatefiltercondition("partitionkey", querycomparisons.equal, parm1),                                                     tableoperators.and,                                                     tablequery.generatefiltercondition("rowkey", querycomparisons.equal, parm2));      tablequery<myentity> query = new tablequery<myentity>().where(querystring);       return tenanttnstable.executequery(query).tolist().firstordefault(); } 

is possible make async method , use await on executequery call?

try task.run. should able run non-async code asynchronously , await result.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -