BaseURI is not being set in AutoRest client
Closed this issue · 0 comments
bowman-jm commented
public static EwsRestGateway Connect(Uri baseUri, string userName, string password, string tokenEndpoint = "GetToken")
{
var client = new EwsRestGateway
{
_token = BearerToken.ObtainToken(baseUri, userName, password, tokenEndpoint)
};
client._password.LoadValue(password);
client._userName.LoadValue(userName);
InitializeServiceClient(client);
return client;
}
should be:
public static EwsRestGateway Connect(Uri baseUri, string userName, string password, string tokenEndpoint = "GetToken")
{
var client = new EwsRestGateway
{
_token = BearerToken.ObtainToken(baseUri, userName, password, tokenEndpoint)
};
client.BaseUri = baseUri;
client._password.LoadValue(password);
client._userName.LoadValue(userName);
InitializeServiceClient(client);
return client;
}