コード例 #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));
        }
コード例 #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);
 }
コード例 #3
0
 internal GremlinDatabaseResource(ArmClient client, GremlinDatabaseData data) : this(client, data.Id)
 {
     HasData = true;
     _data   = data;
 }
コード例 #4
0
 internal GremlinDatabase(ArmClient armClient, GremlinDatabaseData data) : this(armClient, data.Id)
 {
     HasData = true;
     _data   = data;
 }