Esempio n. 1
0
 internal CosmosTable(ArmResource options, CosmosTableData resource) : base(options, resource.Id)
 {
     HasData                   = true;
     _data                     = resource;
     _clientDiagnostics        = new ClientDiagnostics(ClientOptions);
     _tableResourcesRestClient = new TableResourcesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
Esempio n. 2
0
        CosmosTableResource IOperationSource <CosmosTableResource> .CreateResult(Response response, CancellationToken cancellationToken)
        {
            using var document = JsonDocument.Parse(response.ContentStream);
            var data = CosmosTableData.DeserializeCosmosTableData(document.RootElement);

            return(new CosmosTableResource(_client, data));
        }
Esempio n. 3
0
 internal CosmosTableResource(ArmClient client, CosmosTableData data) : this(client, data.Id)
 {
     HasData = true;
     _data   = data;
 }
 internal CosmosTable(ArmClient armClient, CosmosTableData data) : this(armClient, data.Id)
 {
     HasData = true;
     _data   = data;
 }