Пример #1
0
        public static FakeStorageTableOperation Retrieve <TElement>(string partitionKey, string rowKey)
            where TElement : ITableEntity, new()
        {
            IEntityResolver resolver = new TypeEntityResolver <TElement>();

            return(new FakeStorageTableOperation(partitionKey, rowKey, resolver));
        }
Пример #2
0
        /// <summary>Creates an operation to retrieve an entity.</summary>
        /// <typeparam name="TElement">The type of entity to retrieve.</typeparam>
        /// <param name="partitionKey">The partition key of the entity to retrieve.</param>
        /// <param name="rowKey">The row key of the entity to retrieve.</param>
        /// <returns>An operation to retrieve an entity.</returns>
        public static StorageTableOperation Retrieve <TElement>(string partitionKey, string rowKey)
            where TElement : ITableEntity, new()
        {
            TableOperation  sdkOperation = TableOperation.Retrieve <TElement>(partitionKey, rowKey);
            IEntityResolver resolver     = new TypeEntityResolver <TElement>();

            return(new StorageTableOperation(sdkOperation, partitionKey, rowKey, resolver));
        }