Пример #1
0
        private IEnumerator <IAsyncResult> GetPropertiesImpl(ContainerPropertyNames propertyNames, IContainerCondition condition, AsyncIteratorContext <NoResults> context)
        {
            IAsyncResult asyncResult = this.StorageManager.AsyncProcessor.BeginExecute((TimeSpan remaining) => {
                using (DevelopmentStorageDbDataContext dbContext = DevelopmentStorageDbDataContext.GetDbContext())
                {
                    Microsoft.WindowsAzure.DevelopmentStorage.Store.TableContainer tableContainer = this.LoadTableContainer(dbContext);
                    DbTableContainer.CheckTableContainerCondition(tableContainer, condition);
                    this._tableContainer = tableContainer;
                }
            }, this.Timeout, context.GetResumeCallback(), context.GetResumeState("DbTableContainer.GetPropertiesImpl"));

            yield return(asyncResult);

            this.StorageManager.AsyncProcessor.EndExecute(asyncResult);
        }
Пример #2
0
 private Microsoft.WindowsAzure.DevelopmentStorage.Store.TableContainer LoadTableContainer(DevelopmentStorageDbDataContext context)
 {
     return(DbTableContainer.LoadTableContainer(context, this._tableContainer));
 }