public static TableOperation InsertOrReplace(ITableEntity entity)
 {
     CommonUtility.AssertNotNull("entity", entity);
     return(new TableOperation(entity, TableOperationType.InsertOrReplace));
 }
Beispiel #2
0
 public StorageUri TransformUri(StorageUri resourceUri)
 {
     CommonUtility.AssertNotNull("resourceUri", resourceUri);
     return(new StorageUri(TransformUri(resourceUri.PrimaryUri), TransformUri(resourceUri.SecondaryUri)));
 }
 public static void ReadUserObject(object entity, IDictionary <string, EntityProperty> properties, OperationContext operationContext)
 {
     CommonUtility.AssertNotNull("entity", entity);
     ReflectionRead(entity, properties, operationContext);
 }
 public static TableOperation Insert(ITableEntity entity, bool echoContent)
 {
     CommonUtility.AssertNotNull("entity", entity);
     return(new TableOperation(entity, TableOperationType.Insert, echoContent));
 }
Beispiel #5
0
 public static string GenerateFilterConditionForGuid(string propertyName, string operation, Guid givenValue)
 {
     CommonUtility.AssertNotNull("value", givenValue);
     return(GenerateFilterCondition(propertyName, operation, givenValue.ToString(), EdmType.Guid));
 }
Beispiel #6
0
 public virtual IEnumerable <DynamicTableEntity> ExecuteQuery(TableQuery query, TableRequestOptions requestOptions = null, OperationContext operationContext = null)
 {
     CommonUtility.AssertNotNull("query", query);
     return(query.Execute(ServiceClient, this, requestOptions, operationContext));
 }
Beispiel #7
0
 public virtual TableBatchResult ExecuteBatch(TableBatchOperation batch, TableRequestOptions requestOptions = null, OperationContext operationContext = null)
 {
     CommonUtility.AssertNotNull("batch", batch);
     return(batch.Execute(ServiceClient, this, requestOptions, operationContext));
 }
Beispiel #8
0
 public StorageUri AddToUri(StorageUri storageUri)
 {
     CommonUtility.AssertNotNull("storageUri", storageUri);
     return(new StorageUri(AddToUri(storageUri.PrimaryUri), AddToUri(storageUri.SecondaryUri)));
 }
Beispiel #9
0
 public virtual Task <TableQuerySegment <TResult> > ExecuteQuerySegmentedAsync <TResult>(TableQuery query, EntityResolver <TResult> resolver, TableContinuationToken token, TableRequestOptions requestOptions, OperationContext operationContext, CancellationToken cancellationToken)
 {
     CommonUtility.AssertNotNull("query", query);
     CommonUtility.AssertNotNull("resolver", resolver);
     return(query.ExecuteQuerySegmentedAsync(token, ServiceClient, this, resolver, requestOptions, operationContext, cancellationToken));
 }
Beispiel #10
0
 public virtual TableResult Execute(TableOperation operation, TableRequestOptions requestOptions = null, OperationContext operationContext = null)
 {
     CommonUtility.AssertNotNull("operation", operation);
     return(operation.Execute(ServiceClient, this, requestOptions, operationContext));
 }
Beispiel #11
0
 public virtual TableQuerySegment <TResult> ExecuteQuerySegmented <TResult>(TableQuery query, EntityResolver <TResult> resolver, TableContinuationToken token, TableRequestOptions requestOptions = null, OperationContext operationContext = null)
 {
     CommonUtility.AssertNotNull("query", query);
     return(query.ExecuteQuerySegmented(token, ServiceClient, this, resolver, requestOptions, operationContext));
 }
Beispiel #12
0
 public virtual IEnumerable <TResult> ExecuteQuery <TResult>(TableQuery query, EntityResolver <TResult> resolver, TableRequestOptions requestOptions = null, OperationContext operationContext = null)
 {
     CommonUtility.AssertNotNull("query", query);
     CommonUtility.AssertNotNull("resolver", resolver);
     return(query.Execute(ServiceClient, this, resolver, requestOptions, operationContext));
 }
Beispiel #13
0
 public virtual Task <TableQuerySegment <DynamicTableEntity> > ExecuteQuerySegmentedAsync(TableQuery query, TableContinuationToken token, TableRequestOptions requestOptions, OperationContext operationContext, CancellationToken cancellationToken)
 {
     CommonUtility.AssertNotNull("query", query);
     return(query.ExecuteQuerySegmentedAsync(token, ServiceClient, this, requestOptions, operationContext, cancellationToken));
 }
Beispiel #14
0
 public void Insert(ITableEntity entity, bool echoContent)
 {
     CommonUtility.AssertNotNull("entity", entity);
     Add(new TableOperation(entity, TableOperationType.Insert, echoContent));
 }
 public IQueryable <TElement> CreateQuery <TElement>(Expression expression)
 {
     CommonUtility.AssertNotNull("expression", expression);
     return(new TableQuery <TElement>(expression, this));
 }
Beispiel #16
0
 public void InsertOrReplace(ITableEntity entity)
 {
     CommonUtility.AssertNotNull("entity", entity);
     Add(new TableOperation(entity, TableOperationType.InsertOrReplace));
 }
 public static IDictionary <string, EntityProperty> WriteUserObject(object entity, OperationContext operationContext)
 {
     CommonUtility.AssertNotNull("entity", entity);
     return(ReflectionWrite(entity, operationContext));
 }
 internal bool IsDocumentsEndPoint()
 {
     CommonUtility.AssertNotNull("StorageUri", StorageUri);
     return(StorageUri.PrimaryUri.OriginalString.ToLowerInvariant().Contains(".documents."));
 }
 public static IDictionary <string, EntityProperty> Flatten(object entity, EntityPropertyConverterOptions entityPropertyConverterOptions, OperationContext operationContext)
 {
     CommonUtility.AssertNotNull("entity", entity);
     return(EntityPropertyConverter.Flatten(entity, entityPropertyConverterOptions, operationContext));
 }
Beispiel #20
0
 public RetryInfo(RetryContext retryContext)
 {
     CommonUtility.AssertNotNull("retryContext", retryContext);
     TargetLocation      = retryContext.NextLocation;
     UpdatedLocationMode = retryContext.LocationMode;
 }
Beispiel #21
0
 public virtual Task <TableBatchResult> ExecuteBatchAsync(TableBatchOperation batch, TableRequestOptions requestOptions, OperationContext operationContext, CancellationToken cancellationToken)
 {
     CommonUtility.AssertNotNull("batch", batch);
     return(batch.ExecuteAsync(ServiceClient, this, requestOptions, operationContext, cancellationToken));
 }