The Saga Client is the interface through which the Saga instance can be accessed.
Create Client
With Credentials
var result = await Client.Create("https://your_saga_instance", "username", "password");
if (result.IsSuccess) {
Client client = result.Data;
}
You can also configure a logging level at creation:
var result = await Client.Create("https://your_saga_instance", "username", "password", Hexagram.Saga.Logger.LogLevel.Info);
if (result.IsSuccess) {
Client client = result.Data;
}
As New User
var result = await Client.CreateAsNewUser("https://your_saga_instance");
if (result.IsSuccess) {
Client client = result.Data;
}
With a prefix and tags:
string[] tags = new String[]{"tag1", "tag2"};
var result = await Client.CreateAsNewUser("https://your_saga_instance", "test_prefix", tags);
if (result.IsSuccess) {
Client client = result.Data;
}