/// <summary>
 /// Initializes a new instance of the BackupInfo class.
 /// </summary>
 /// <param name="backupId">Unique backup ID .</param>
 /// <param name="backupChainId">Unique backup chain ID. All backups part of the same chain has the same backup chain
 /// id. A backup chain is comprised of 1 full backup and multiple incremental backups.</param>
 /// <param name="applicationName">Name of the Service Fabric application this partition backup belongs to.</param>
 /// <param name="serviceName">Name of the Service Fabric service this partition backup belongs to.</param>
 /// <param name="partitionInformation">Information about the partition to which this backup belongs to</param>
 /// <param name="backupLocation">Location of the backup, relative to the backup store.</param>
 /// <param name="backupType">Describes the type of backup, whether its full or incremental.
 /// . Possible values include: 'Invalid', 'Full', 'Incremental'</param>
 /// <param name="epochOfLastBackupRecord">Epoch of the last record in this backup.</param>
 /// <param name="lsnOfLastBackupRecord">LSN of the last record in this backup.</param>
 /// <param name="creationTimeUtc">The date time when this backup was taken.</param>
 /// <param name="serviceManifestVersion">Manifest Version of the service this partition backup belongs to.</param>
 /// <param name="failureError">Denotes the failure encountered in getting backup point information.</param>
 public BackupInfo(
     Guid?backupId          = default(Guid?),
     Guid?backupChainId     = default(Guid?),
     string applicationName = default(string),
     string serviceName     = default(string),
     PartitionInformation partitionInformation = default(PartitionInformation),
     string backupLocation         = default(string),
     BackupType?backupType         = default(BackupType?),
     Epoch epochOfLastBackupRecord = default(Epoch),
     string lsnOfLastBackupRecord  = default(string),
     DateTime?creationTimeUtc      = default(DateTime?),
     string serviceManifestVersion = default(string),
     FabricErrorError failureError = default(FabricErrorError))
 {
     this.BackupId                = backupId;
     this.BackupChainId           = backupChainId;
     this.ApplicationName         = applicationName;
     this.ServiceName             = serviceName;
     this.PartitionInformation    = partitionInformation;
     this.BackupLocation          = backupLocation;
     this.BackupType              = backupType;
     this.EpochOfLastBackupRecord = epochOfLastBackupRecord;
     this.LsnOfLastBackupRecord   = lsnOfLastBackupRecord;
     this.CreationTimeUtc         = creationTimeUtc;
     this.ServiceManifestVersion  = serviceManifestVersion;
     this.FailureError            = failureError;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the RestoreProgressInfo class.
 /// </summary>
 /// <param name="restoreState">Represents the current state of the partition restore operation.
 /// . Possible values include: 'Invalid', 'Accepted', 'RestoreInProgress', 'Success', 'Failure', 'Timeout'</param>
 /// <param name="timeStampUtc">Timestamp when operation succeeded or failed.</param>
 /// <param name="restoredEpoch">Describes the epoch at which the partition is restored.</param>
 /// <param name="restoredLsn">Restored LSN.</param>
 /// <param name="failureError">Denotes the failure encountered in performing restore operation.</param>
 public RestoreProgressInfo(
     RestoreState?restoreState     = default(RestoreState?),
     DateTime?timeStampUtc         = default(DateTime?),
     Epoch restoredEpoch           = default(Epoch),
     string restoredLsn            = default(string),
     FabricErrorError failureError = default(FabricErrorError))
 {
     this.RestoreState  = restoreState;
     this.TimeStampUtc  = timeStampUtc;
     this.RestoredEpoch = restoredEpoch;
     this.RestoredLsn   = restoredLsn;
     this.FailureError  = failureError;
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the BackupProgressInfo class.
 /// </summary>
 /// <param name="backupState">Represents the current state of the partition backup operation.
 /// . Possible values include: 'Invalid', 'Accepted', 'BackupInProgress', 'Success', 'Failure', 'Timeout'</param>
 /// <param name="timeStampUtc">TimeStamp in UTC when operation succeeded or failed.</param>
 /// <param name="backupId">Unique ID of the newly created backup.</param>
 /// <param name="backupLocation">Location, relative to the backup store, of the newly created backup.</param>
 /// <param name="epochOfLastBackupRecord">Specifies the epoch of the last record included in backup.</param>
 /// <param name="lsnOfLastBackupRecord">The LSN of last record included in backup.</param>
 /// <param name="failureError">Denotes the failure encountered in performing backup operation.</param>
 public BackupProgressInfo(
     BackupState?backupState       = default(BackupState?),
     DateTime?timeStampUtc         = default(DateTime?),
     Guid?backupId                 = default(Guid?),
     string backupLocation         = default(string),
     Epoch epochOfLastBackupRecord = default(Epoch),
     string lsnOfLastBackupRecord  = default(string),
     FabricErrorError failureError = default(FabricErrorError))
 {
     this.BackupState             = backupState;
     this.TimeStampUtc            = timeStampUtc;
     this.BackupId                = backupId;
     this.BackupLocation          = backupLocation;
     this.EpochOfLastBackupRecord = epochOfLastBackupRecord;
     this.LsnOfLastBackupRecord   = lsnOfLastBackupRecord;
     this.FailureError            = failureError;
 }
예제 #4
0
 /// <summary>
 /// Initializes a new instance of the FabricError class.
 /// </summary>
 /// <param name="error">Error object containing error code and error message.</param>
 public FabricError(
     FabricErrorError error)
 {
     error.ThrowIfNull(nameof(error));
     this.Error = error;
 }