/// <summary>
 /// Gets a list of all the tables under the specified storage account
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <Table> > ListNextAsync(this ITableOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#2
0
 /// <summary>
 /// Gets all the table instances in a data factory with the link to the
 /// next page.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.ITableOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the data factory.
 /// </param>
 /// <param name='dataFactoryName'>
 /// Required. A unique data factory instance name.
 /// </param>
 /// <returns>
 /// The List tables operation response.
 /// </returns>
 public static Task <TableListResponse> ListAsync(
     this ITableOperations operations,
     string resourceGroupName,
     string dataFactoryName)
 {
     return(operations.ListAsync(resourceGroupName, dataFactoryName, CancellationToken.None));
 }
 /// <summary>
 /// Creates a new table with the specified table name, under the specified
 /// account.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription. The name is
 /// case insensitive.
 /// </param>
 /// <param name='accountName'>
 /// The name of the storage account within the specified resource group.
 /// Storage account names must be between 3 and 24 characters in length and use
 /// numbers and lower-case letters only.
 /// </param>
 /// <param name='tableName'>
 /// A table name must be unique within a storage account and must be between 3
 /// and 63 characters.The name must comprise of only alphanumeric characters
 /// and it cannot begin with a numeric character.
 /// </param>
 /// <param name='signedIdentifiers'>
 /// List of stored access policies specified on the table.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Table> CreateAsync(this ITableOperations operations, string resourceGroupName, string accountName, string tableName, IList <TableSignedIdentifier> signedIdentifiers = default(IList <TableSignedIdentifier>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, accountName, tableName, signedIdentifiers, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
        public IInfrastructureOperation CreateDalChangeOperations(BusinessObject sender, BusinessChangeEventArgs args)
        {
            Task             task      = null;
            ITableOperations operation = CreateTableOperation(args);

            if (operation != null)
            {
                task = new Task(() =>
                {
                    switch (args.businessChangeType)
                    {
                    case BusinessChangeType.Add:
                        operation.Add(sender, args);
                        break;

                    case BusinessChangeType.Update:
                        operation.Update(sender, args);
                        break;

                    case BusinessChangeType.Delete:
                        operation.Delete(sender, args);
                        break;

                    default:
                        break;
                    }
                });
            }

            return(new InfrastructureOperation(task));
        }
        public IInfrastructureOperation CreateDalConsultOperations(BusinessObject sender, BusinessConsultEventArgs args)
        {
            Task             task      = null;
            ITableOperations operation = CreateTableOperation(args);

            if (operation != null)
            {
                task = new Task(() =>
                {
                    switch (args.businessConsultType)
                    {
                    case BusinessConsultType.Get:
                        operation.Get(sender, args);
                        break;

                    case BusinessConsultType.GetAll:
                        operation.GetAll(sender, args);
                        break;

                    case BusinessConsultType.GetBy:
                        operation.GetBy(sender, args);
                        break;

                    default:
                        break;
                    }
                });
            }

            return(new InfrastructureOperation(task));
        }
 /// <summary>
 /// Gets a list of all the tables under the specified storage account
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription. The name is
 /// case insensitive.
 /// </param>
 /// <param name='accountName'>
 /// The name of the storage account within the specified resource group.
 /// Storage account names must be between 3 and 24 characters in length and use
 /// numbers and lower-case letters only.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <Table> > ListAsync(this ITableOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#7
0
 /// <summary>
 /// Delete a table instance.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.ITableOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the data factory.
 /// </param>
 /// <param name='dataFactoryName'>
 /// Required. A unique data factory instance name.
 /// </param>
 /// <param name='tableName'>
 /// Required. Name of the table.
 /// </param>
 /// <returns>
 /// A standard service response for long running operations.
 /// </returns>
 public static Task <LongRunningOperationResponse> DeleteAsync(
     this ITableOperations operations,
     string resourceGroupName,
     string dataFactoryName,
     string tableName)
 {
     return(operations.DeleteAsync(resourceGroupName, dataFactoryName, tableName, CancellationToken.None));
 }
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.Core.ITableOperations.
 /// </param>
 /// <param name='operationStatusLink'>
 /// Required. Location value returned by the Begin operation.
 /// </param>
 /// <returns>
 /// The CreateOrUpdate table operation response.
 /// </returns>
 public static TableCreateOrUpdateResponse GetCreateOrUpdateStatus(this ITableOperations operations, string operationStatusLink)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((ITableOperations)s).GetCreateOrUpdateStatusAsync(operationStatusLink);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
示例#9
0
 public CafeController(
     IApplicationUserOperations applicationUserOperations, ITableOperations tableOperations, ICafeOperations cafeOperations, IPriceTableQueryOperations priceTableQueryOperations)
 {
     _applicationUserOperations = applicationUserOperations;
     _tableOperations           = tableOperations;
     _cafeOperations            = cafeOperations;
     _priceTableQueryOperations = priceTableQueryOperations;
 }
 /// <summary>
 /// Gets the next page of table instances with the link to the next
 /// page.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.Core.ITableOperations.
 /// </param>
 /// <param name='nextLink'>
 /// Required. The url to the next tables page.
 /// </param>
 /// <returns>
 /// The List tables operation response.
 /// </returns>
 public static TableListResponse ListNext(this ITableOperations operations, string nextLink)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((ITableOperations)s).ListNextAsync(nextLink);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets all the table instances in a data factory with the link to the
 /// next page.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.Core.ITableOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the data factory.
 /// </param>
 /// <param name='dataFactoryName'>
 /// Required. A unique data factory instance name.
 /// </param>
 /// <returns>
 /// The List tables operation response.
 /// </returns>
 public static TableListResponse List(this ITableOperations operations, string resourceGroupName, string dataFactoryName)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((ITableOperations)s).ListAsync(resourceGroupName, dataFactoryName);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Create a new table instance or update an existing instance.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.Core.ITableOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the data factory.
 /// </param>
 /// <param name='dataFactoryName'>
 /// Required. A unique data factory instance name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters required to create or update a table.
 /// </param>
 /// <returns>
 /// The CreateOrUpdate table operation response.
 /// </returns>
 public static TableCreateOrUpdateResponse BeginCreateOrUpdate(this ITableOperations operations, string resourceGroupName, string dataFactoryName, TableCreateOrUpdateParameters parameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((ITableOperations)s).BeginCreateOrUpdateAsync(resourceGroupName, dataFactoryName, parameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     Operations                       = new Operations(this);
     Skus                             = new SkusOperations(this);
     StorageAccounts                  = new StorageAccountsOperations(this);
     DeletedAccounts                  = new DeletedAccountsOperations(this);
     Usages                           = new UsagesOperations(this);
     ManagementPolicies               = new ManagementPoliciesOperations(this);
     BlobInventoryPolicies            = new BlobInventoryPoliciesOperations(this);
     PrivateEndpointConnections       = new PrivateEndpointConnectionsOperations(this);
     PrivateLinkResources             = new PrivateLinkResourcesOperations(this);
     ObjectReplicationPolicies        = new ObjectReplicationPoliciesOperations(this);
     LocalUsers                       = new LocalUsersOperations(this);
     EncryptionScopes                 = new EncryptionScopesOperations(this);
     BlobServices                     = new BlobServicesOperations(this);
     BlobContainers                   = new BlobContainersOperations(this);
     FileServices                     = new FileServicesOperations(this);
     FileShares                       = new FileSharesOperations(this);
     QueueServices                    = new QueueServicesOperations(this);
     Queue                            = new QueueOperations(this);
     TableServices                    = new TableServicesOperations(this);
     Table                            = new TableOperations(this);
     BaseUri                          = new System.Uri("https://management.azure.com");
     ApiVersion                       = "2021-08-01";
     AcceptLanguage                   = "en-US";
     LongRunningOperationRetryTimeout = 30;
     GenerateClientRequestId          = true;
     SerializationSettings            = new JsonSerializerSettings
     {
         Formatting            = Newtonsoft.Json.Formatting.Indented,
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     SerializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings = new JsonSerializerSettings
     {
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     CustomInitialize();
     DeserializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
 }
示例#14
0
 /// <summary>
 /// Create a new table instance or update an existing instance.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.ITableOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the data factory.
 /// </param>
 /// <param name='dataFactoryName'>
 /// Required. A unique data factory instance name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters required to create or update a table.
 /// </param>
 /// <returns>
 /// The CreateOrUpdate table operation response.
 /// </returns>
 public static Task <TableCreateOrUpdateResponse> BeginCreateOrUpdateAsync(
     this ITableOperations operations,
     string resourceGroupName,
     string dataFactoryName,
     TableCreateOrUpdateParameters parameters)
 {
     return(operations.BeginCreateOrUpdateAsync(
                resourceGroupName,
                dataFactoryName,
                parameters,
                CancellationToken.None));
 }
示例#15
0
 /// <summary>
 /// Delete a table instance.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.ITableOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the data factory.
 /// </param>
 /// <param name='dataFactoryName'>
 /// Required. A unique data factory instance name.
 /// </param>
 /// <param name='tableName'>
 /// Required. Name of the table.
 /// </param>
 /// <returns>
 /// A standard service response for long running operations.
 /// </returns>
 public static LongRunningOperationResponse Delete(
     this ITableOperations operations,
     string resourceGroupName,
     string dataFactoryName,
     string tableName)
 {
     return(Task.Factory.StartNew(
                s => ((ITableOperations)s).DeleteAsync(resourceGroupName, dataFactoryName, tableName),
                operations,
                CancellationToken.None,
                TaskCreationOptions.None,
                TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
示例#16
0
 /// <summary>
 /// Create a new table instance or update an existing instance with raw
 /// json content.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.ITableOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the data factory.
 /// </param>
 /// <param name='dataFactoryName'>
 /// Required. A unique data factory instance name.
 /// </param>
 /// <param name='tableName'>
 /// Required. A unique table instance name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters required to create or update a table.
 /// </param>
 /// <returns>
 /// The CreateOrUpdate table operation response.
 /// </returns>
 public static Task <TableCreateOrUpdateResponse> CreateOrUpdateWithRawJsonContentAsync(
     this ITableOperations operations,
     string resourceGroupName,
     string dataFactoryName,
     string tableName,
     TableCreateOrUpdateWithRawJsonContentParameters parameters)
 {
     return(operations.CreateOrUpdateWithRawJsonContentAsync(
                resourceGroupName,
                dataFactoryName,
                tableName,
                parameters,
                CancellationToken.None));
 }
 /// <summary>
 /// Initializes a new instance of the DataPipelineManagementClient
 /// class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 public DataPipelineManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._dataFactories     = new DataFactoryOperations(this);
     this._dataSlices        = new DataSliceOperations(this);
     this._dataSliceRuns     = new DataSliceRunOperations(this);
     this._gateways          = new GatewayOperations(this);
     this._hubs              = new HubOperations(this);
     this._linkedServices    = new LinkedServiceOperations(this);
     this._pipelines         = new PipelineOperations(this);
     this._pipelineRuns      = new PipelineRunOperations(this);
     this._tables            = new TableOperations(this);
     this.HttpClient.Timeout = TimeSpan.FromSeconds(60);
 }
示例#18
0
 /// <summary>
 /// Initializes a new instance of the DataPipelineManagementClient
 /// class.
 /// </summary>
 private DataPipelineManagementClient()
     : base()
 {
     this._dataFactories         = new DataFactoryOperations(this);
     this._dataSlices            = new DataSliceOperations(this);
     this._dataSliceRuns         = new DataSliceRunOperations(this);
     this._encryptionCertificate = new EncryptionCertificateOperations(this);
     this._gateways          = new GatewayOperations(this);
     this._hubs              = new HubOperations(this);
     this._linkedServices    = new LinkedServiceOperations(this);
     this._pipelines         = new PipelineOperations(this);
     this._pipelineRuns      = new PipelineRunOperations(this);
     this._tables            = new TableOperations(this);
     this.HttpClient.Timeout = TimeSpan.FromSeconds(60);
 }
示例#19
0
 /// <summary>
 /// Initializes a new instance of the DataFactoryManagementClient class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 public DataFactoryManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._activityTypes  = new ActivityTypeOperations(this);
     this._computeTypes   = new ComputeTypeOperations(this);
     this._dataFactories  = new DataFactoryOperations(this);
     this._dataSlices     = new DataSliceOperations(this);
     this._dataSliceRuns  = new DataSliceRunOperations(this);
     this._gateways       = new GatewayOperations(this);
     this._hubs           = new HubOperations(this);
     this._linkedServices = new LinkedServiceOperations(this);
     this._pipelines      = new PipelineOperations(this);
     this._tables         = new TableOperations(this);
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(60);
 }
示例#20
0
 /// <summary>
 /// Create a new table instance or update an existing instance with raw
 /// json content.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.ITableOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the data factory.
 /// </param>
 /// <param name='dataFactoryName'>
 /// Required. A unique data factory instance name.
 /// </param>
 /// <param name='tableName'>
 /// Required. A unique table instance name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters required to create or update a table.
 /// </param>
 /// <returns>
 /// The CreateOrUpdate table operation response.
 /// </returns>
 public static TableCreateOrUpdateResponse CreateOrUpdateWithRawJsonContent(
     this ITableOperations operations,
     string resourceGroupName,
     string dataFactoryName,
     string tableName,
     TableCreateOrUpdateWithRawJsonContentParameters parameters)
 {
     return(Task.Factory.StartNew(
                s => ((ITableOperations)s).CreateOrUpdateWithRawJsonContentAsync(
                    resourceGroupName,
                    dataFactoryName,
                    tableName,
                    parameters),
                operations,
                CancellationToken.None,
                TaskCreationOptions.None,
                TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
示例#21
0
        public IHttpActionResult GetRecordIDsWhere(string modelName)
        {
            object collection;

            using (DataContext dataContext = new DataContext("systemSettings"))
            {
                try
                {
                    string whereClause = Request.GetQueryNameValuePairs()
                                         .Where(kvp => kvp.Key == "where")
                                         .Select(kvp => kvp.Value)
                                         .FirstOrDefault() ?? "1=1";

                    Type             type            = typeof(Meter).Assembly.GetType($"openXDA.Model.{modelName}");
                    ITableOperations tableOperations = dataContext.Table(type);

                    string query =
                        $"SELECT ID " +
                        $"FROM {tableOperations.TableName} " +
                        $"WHERE ({whereClause})";

                    object[] queryParameters = new object[0];

                    if (type.TryGetAttribute(out PQMarkRestrictedAttribute thing))
                    {
                        query          += " AND ID IN (SELECT PrimaryID FROM PQMarkRestrictedTableUserAccount WHERE TableName = {0} AND UserAccount = {1})";
                        queryParameters = new object[] { modelName, User.Identity.Name };
                    }

                    Type fieldType = tableOperations.GetFieldType("ID");

                    collection = dataContext.Connection.RetrieveData(query, queryParameters).Select()
                                 .Select(row => row.ConvertField("ID", fieldType));
                }
                catch (Exception ex)
                {
                    Log.Error(ex);
                    return(BadRequest(ex.ToString()));
                }
            }

            return(Ok(collection));
        }
 /// <summary>
 /// Creates a new table with the specified table name, under the specified
 /// account.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription. The name is
 /// case insensitive.
 /// </param>
 /// <param name='accountName'>
 /// The name of the storage account within the specified resource group.
 /// Storage account names must be between 3 and 24 characters in length and use
 /// numbers and lower-case letters only.
 /// </param>
 /// <param name='tableName'>
 /// A table name must be unique within a storage account and must be between 3
 /// and 63 characters.The name must comprise of only alphanumeric characters
 /// and it cannot begin with a numeric character.
 /// </param>
 public static Table Create(this ITableOperations operations, string resourceGroupName, string accountName, string tableName)
 {
     return(operations.CreateAsync(resourceGroupName, accountName, tableName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets a list of all the tables under the specified storage account
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <Table> ListNext(this ITableOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets a list of all the tables under the specified storage account
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription. The name is
 /// case insensitive.
 /// </param>
 /// <param name='accountName'>
 /// The name of the storage account within the specified resource group.
 /// Storage account names must be between 3 and 24 characters in length and use
 /// numbers and lower-case letters only.
 /// </param>
 public static IPage <Table> List(this ITableOperations operations, string resourceGroupName, string accountName)
 {
     return(operations.ListAsync(resourceGroupName, accountName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Deletes the table with the specified table name, under the specified
 /// account if it exists.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription. The name is
 /// case insensitive.
 /// </param>
 /// <param name='accountName'>
 /// The name of the storage account within the specified resource group.
 /// Storage account names must be between 3 and 24 characters in length and use
 /// numbers and lower-case letters only.
 /// </param>
 /// <param name='tableName'>
 /// A table name must be unique within a storage account and must be between 3
 /// and 63 characters.The name must comprise of only alphanumeric characters
 /// and it cannot begin with a numeric character.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this ITableOperations operations, string resourceGroupName, string accountName, string tableName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, tableName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Deletes the table with the specified table name, under the specified
 /// account if it exists.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the user's subscription. The name is
 /// case insensitive.
 /// </param>
 /// <param name='accountName'>
 /// The name of the storage account within the specified resource group.
 /// Storage account names must be between 3 and 24 characters in length and use
 /// numbers and lower-case letters only.
 /// </param>
 /// <param name='tableName'>
 /// A table name must be unique within a storage account and must be between 3
 /// and 63 characters.The name must comprise of only alphanumeric characters
 /// and it cannot begin with a numeric character.
 /// </param>
 public static void Delete(this ITableOperations operations, string resourceGroupName, string accountName, string tableName)
 {
     operations.DeleteAsync(resourceGroupName, accountName, tableName).GetAwaiter().GetResult();
 }
示例#27
0
 public OrdersController(ITableOperations tableOperations, ILoggingService loggingService)
 {
     _tableOperations = tableOperations;
     _loggingService  = loggingService;
 }
示例#28
0
 public DeleteModel(ITableOperations tableOperations, ILoggingService loggingService)
 {
     _tableOperations = tableOperations;
     _loggingService  = loggingService;
 }
 /// <summary>
 /// Gets the next page of table instances with the link to the next
 /// page.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.Core.ITableOperations.
 /// </param>
 /// <param name='nextLink'>
 /// Required. The url to the next tables page.
 /// </param>
 /// <returns>
 /// The List tables operation response.
 /// </returns>
 public static Task <TableListResponse> ListNextAsync(this ITableOperations operations, string nextLink)
 {
     return(operations.ListNextAsync(nextLink, CancellationToken.None));
 }
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataFactories.Core.ITableOperations.
 /// </param>
 /// <param name='operationStatusLink'>
 /// Required. Location value returned by the Begin operation.
 /// </param>
 /// <returns>
 /// The CreateOrUpdate table operation response.
 /// </returns>
 public static Task <TableCreateOrUpdateResponse> GetCreateOrUpdateStatusAsync(this ITableOperations operations, string operationStatusLink)
 {
     return(operations.GetCreateOrUpdateStatusAsync(operationStatusLink, CancellationToken.None));
 }