Click or drag to resize

IInfrascaleSdkResumeOnlineBackup Method

Resume the current backup session (if paused).

Namespace:  SOS.SDK.Contracts
Assembly:  SOS.SDK (in SOS.SDK.dll) Version: 7.6.1.5742
Syntax
C#
ResumeOnlineBackupResponse ResumeOnlineBackup(
	ResumeOnlineBackupRequest request
)

Parameters

request
Type: SOS.SDK.Contracts.DataContracts.RequestsResumeOnlineBackupRequest
Parameters of the resuming.

Return Value

Type: ResumeOnlineBackupResponse
Resuming results.
Exceptions
ExceptionCondition
NotSignedIn
MethodCallFailed
Remarks
Resume the current backup session after pausing, regardless of who launched/paused it. In the absence of active sessions, the Resume does nothing.
Examples
Example 1
using SOS.SDK.Contracts.DataContracts;
using SOS.SDK.Contracts.DataContracts.Requests;

namespace SOS.SDK.Test.Examples.OnlineBackup
{
    public class OnlineBackupStateExamples
    {
        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 ResumeOnlineBackup()
        {
            var identity = SignIn();
            _client.ResumeOnlineBackup(new ResumeOnlineBackupRequest {Identity = identity});
        }
    }
}
See Also