Ejemplo n.º 1
0
        GremlinDatabase IOperationSource <GremlinDatabase> .CreateResult(Response response, CancellationToken cancellationToken)
        {
            using var document = JsonDocument.Parse(response.ContentStream);
            var data = GremlinDatabaseData.DeserializeGremlinDatabaseData(document.RootElement);

            return(new GremlinDatabase(_client, data));
        }
Ejemplo n.º 2
0
 internal GremlinDatabase(ArmResource options, GremlinDatabaseData resource) : base(options, resource.Id)
 {
     HasData                     = true;
     _data                       = resource;
     _clientDiagnostics          = new ClientDiagnostics(ClientOptions);
     _gremlinResourcesRestClient = new GremlinResourcesRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
 internal GremlinDatabaseResource(ArmClient client, GremlinDatabaseData data) : this(client, data.Id)
 {
     HasData = true;
     _data   = data;
 }
 internal GremlinDatabase(ArmClient armClient, GremlinDatabaseData data) : this(armClient, data.Id)
 {
     HasData = true;
     _data   = data;
 }