Skip to content

Commit

Permalink
add ReadSchemaAsync impl
Browse files Browse the repository at this point in the history
  • Loading branch information
dystopiandev authored Jun 27, 2024
1 parent 71e6618 commit 42f9cb7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion SpiceDb/SpiceDbClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,11 @@ public string ReadSchema()
return _spiceDbCore.Schema.ReadSchemaAsync().Result;
}

public async Task<string> ReadSchemaAsync()
{
return await _spiceDbCore.Schema.ReadSchemaAsync();
}

public async Task WriteSchemaAsync(string schema)
{
await _spiceDbCore.Schema.WriteSchemaAsync(schema);
Expand Down Expand Up @@ -688,4 +693,4 @@ public async Task ImportSchemaFromStringAsync(string schema)

return caveat;
}
}
}

0 comments on commit 42f9cb7

Please sign in to comment.