コード例 #1
0
        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;
            }
        }
コード例 #2
0
        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;
            }
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
 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));
 }
コード例 #6
0
 private IEnumerator <IAsyncResult> GetPropertiesImpl(AccountPropertyNames propertyNames, IAccountCondition condition, CacheRefreshOptions cacheRefreshOptions, AsyncIteratorContext <NoResults> context)
 {
     return(this.GetPropertiesImplOld(propertyNames, condition, cacheRefreshOptions, context));
 }
コード例 #7
0
 public IAsyncResult BeginGetProperties(AccountPropertyNames propertyNames, IAccountCondition condition, AsyncCallback callback, object state)
 {
     return(this.BeginGetProperties(propertyNames, condition, CacheRefreshOptions.None, Environment.TickCount & 2147483647, callback, state));
 }