| IInfrascaleSdkSignOut Method |
Signing out backup account on Infrascale Service.
Namespace:
SOS.SDK.Contracts
Assembly:
SOS.SDK (in SOS.SDK.dll) Version: 7.6.1.5742
Syntax Exceptions Remarks Examples Signing out backup account on the Infrascale Service
using System;
using SOS.SDK.Contracts.DataContracts;
using SOS.SDK.Contracts.DataContracts.Requests;
namespace SOS.SDK.Test.Examples
{
public class AuthentificationExamples
{
private string _testAccount = @"sdk.test@sosonlinebackup.com";
private string _testAccountPassword = @"qweqwe";
private IInfrascaleClient _client;
public IdentityContract SignIn()
{
_client = new InfrascaleClient();
_client.Connect();
var signInResponse = _client.SignIn(new SignInRequest
{
Credentials = new CredentialsContract {Login = _testAccount, Password = _testAccountPassword}
});
return signInResponse.Identity;
}
public void CallExample()
{
var identity = SignIn();
GetAccountInfo(identity, false);
SignOut(identity);
_client.Disconnect();
}
public void SignOut(IdentityContract identity)
{
_client.SignOut(new SignOutRequest
{
Identity = identity
});
}
}
}
See Also