private IEnumerator <IAsyncResult> GetPropertiesImplOld(AccountPropertyNames propertyNames, IAccountCondition condition, CacheRefreshOptions cacheRefreshOptions, AsyncIteratorContext <NoResults> context) { IAsyncResult asyncResult; try { asyncResult = this.internalAccount.BeginGetProperties(propertyNames, condition, context.GetResumeCallback(), context.GetResumeState("StorageAccount.GetPropertiesImpl")); } catch (Exception exception) { StorageStamp.TranslateException(exception); throw; } yield return(asyncResult); try { this.internalAccount.EndGetProperties(asyncResult); } catch (Exception exception1) { StorageStamp.TranslateException(exception1); throw; } }
private IEnumerator <IAsyncResult> SetPropertiesImpl(AccountPropertyNames propertyNames, IAccountCondition conditions, AsyncIteratorContext <NoResults> context) { IAsyncResult asyncResult; IStringDataEventStream verboseDebug = Logger <IRestProtocolHeadLogger> .Instance.VerboseDebug; object[] objArray = new object[] { propertyNames, conditions, this.Timeout }; verboseDebug.Log("SetPropertiesImpl({0},{1},{2})", objArray); try { asyncResult = this.internalAccount.BeginSetProperties(propertyNames, null, context.GetResumeCallback(), context.GetResumeState("StorageAccount.SetPropertiesImpl")); } catch (Exception exception) { StorageStamp.TranslateException(exception); throw; } yield return(asyncResult); try { this.internalAccount.EndSetProperties(asyncResult); } catch (Exception exception1) { StorageStamp.TranslateException(exception1); throw; } }
public IAsyncResult BeginSetProperties(AccountPropertyNames propertyNames, IAccountCondition conditions, AsyncCallback callback, object state) { AsyncIteratorContext <NoResults> asyncIteratorContext = new AsyncIteratorContext <NoResults>("StorageAccount.SetProperties", callback, state); asyncIteratorContext.Begin(this.SetPropertiesImpl(propertyNames, conditions, asyncIteratorContext)); return(asyncIteratorContext); }
public IAsyncResult BeginGetProperties(AccountPropertyNames propertyNames, IAccountCondition condition, CacheRefreshOptions cacheRefreshOptions, int localCacheEntryTimeInTicks, AsyncCallback callback, object state) { AsyncIteratorContext <NoResults> asyncIteratorContext = new AsyncIteratorContext <NoResults>("StorageAccount.GetProperties", callback, state); asyncIteratorContext.Begin(this.GetPropertiesImpl(propertyNames, condition, cacheRefreshOptions, asyncIteratorContext)); return(asyncIteratorContext); }
static AccountPropertyNames() { AccountPropertyNames.None = new AccountPropertyNames(AccountLevelPropertyNames.None, (AccountServiceMetadataPropertyNames)((long)0)); AccountPropertyNames.All = new AccountPropertyNames(AccountLevelPropertyNames.SecretKeys, (AccountServiceMetadataPropertyNames)((long)2013773824)); AccountPropertyNames.ServiceMetadata = new AccountPropertyNames(AccountLevelPropertyNames.None, (AccountServiceMetadataPropertyNames)((long)2013773824)); AccountPropertyNames.SecretKeys = new AccountPropertyNames(AccountLevelPropertyNames.SecretKeys, (AccountServiceMetadataPropertyNames)((long)0)); }
private IEnumerator <IAsyncResult> GetPropertiesImpl(AccountPropertyNames propertyNames, IAccountCondition condition, CacheRefreshOptions cacheRefreshOptions, AsyncIteratorContext <NoResults> context) { return(this.GetPropertiesImplOld(propertyNames, condition, cacheRefreshOptions, context)); }
public IAsyncResult BeginGetProperties(AccountPropertyNames propertyNames, IAccountCondition condition, AsyncCallback callback, object state) { return(this.BeginGetProperties(propertyNames, condition, CacheRefreshOptions.None, Environment.TickCount & 2147483647, callback, state)); }