コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the BackupConfigurationInfo class.
 /// </summary>
 /// <param name="kind">The entity type of a Service Fabric entity such as Application, Service or a Partition where
 /// periodic backups can be enabled.
 /// </param>
 /// <param name="policyName">The name of the backup policy which is applicable to this Service Fabric application or
 /// service or partition.</param>
 /// <param name="policyInheritedFrom">Specifies the scope at which the backup policy is applied.
 /// . Possible values include: 'Invalid', 'Partition', 'Service', 'Application'</param>
 /// <param name="suspensionInfo">Describes the backup suspension details.
 /// </param>
 protected BackupConfigurationInfo(
     BackupEntityKind?kind,
     string policyName = default(string),
     BackupPolicyScope?policyInheritedFrom = default(BackupPolicyScope?),
     BackupSuspensionInfo suspensionInfo   = default(BackupSuspensionInfo))
 {
     kind.ThrowIfNull(nameof(kind));
     this.Kind                = kind;
     this.PolicyName          = policyName;
     this.PolicyInheritedFrom = policyInheritedFrom;
     this.SuspensionInfo      = suspensionInfo;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the ApplicationBackupConfigurationInfo class.
 /// </summary>
 /// <param name="policyName">The name of the backup policy which is applicable to this Service Fabric application or
 /// service or partition.</param>
 /// <param name="policyInheritedFrom">Specifies the scope at which the backup policy is applied.
 /// . Possible values include: 'Invalid', 'Partition', 'Service', 'Application'</param>
 /// <param name="suspensionInfo">Describes the backup suspension details.
 /// </param>
 /// <param name="applicationName">The name of the application, including the 'fabric:' URI scheme.</param>
 public ApplicationBackupConfigurationInfo(
     string policyName = default(string),
     BackupPolicyScope?policyInheritedFrom = default(BackupPolicyScope?),
     BackupSuspensionInfo suspensionInfo   = default(BackupSuspensionInfo),
     ApplicationName applicationName       = default(ApplicationName))
     : base(
         Common.BackupEntityKind.Application,
         policyName,
         policyInheritedFrom,
         suspensionInfo)
 {
     this.ApplicationName = applicationName;
 }
 /// <summary>
 /// Initializes a new instance of the ServiceBackupConfigurationInfo class.
 /// </summary>
 /// <param name="policyName">The name of the backup policy which is applicable to this Service Fabric application or
 /// service or partition.</param>
 /// <param name="policyInheritedFrom">Specifies the scope at which the backup policy is applied.
 /// . Possible values include: 'Invalid', 'Partition', 'Service', 'Application'</param>
 /// <param name="suspensionInfo">Describes the backup suspension details.
 /// </param>
 /// <param name="serviceName">The full name of the service with 'fabric:' URI scheme.</param>
 public ServiceBackupConfigurationInfo(
     string policyName = default(string),
     BackupPolicyScope?policyInheritedFrom = default(BackupPolicyScope?),
     BackupSuspensionInfo suspensionInfo   = default(BackupSuspensionInfo),
     ServiceName serviceName = default(ServiceName))
     : base(
         Common.BackupEntityKind.Service,
         policyName,
         policyInheritedFrom,
         suspensionInfo)
 {
     this.ServiceName = serviceName;
 }
 /// <summary>
 /// Initializes a new instance of the PartitionBackupConfigurationInfo class.
 /// </summary>
 /// <param name="policyName">The name of the backup policy which is applicable to this Service Fabric application or
 /// service or partition.</param>
 /// <param name="policyInheritedFrom">Specifies the scope at which the backup policy is applied.
 /// . Possible values include: 'Invalid', 'Partition', 'Service', 'Application'</param>
 /// <param name="suspensionInfo">Describes the backup suspension details.
 /// </param>
 /// <param name="serviceName">The full name of the service with 'fabric:' URI scheme.</param>
 /// <param name="partitionId">The partition ID identifying the partition.</param>
 public PartitionBackupConfigurationInfo(
     string policyName = default(string),
     BackupPolicyScope?policyInheritedFrom = default(BackupPolicyScope?),
     BackupSuspensionInfo suspensionInfo   = default(BackupSuspensionInfo),
     ServiceName serviceName = default(ServiceName),
     PartitionId partitionId = default(PartitionId))
     : base(
         Common.BackupEntityKind.Partition,
         policyName,
         policyInheritedFrom,
         suspensionInfo)
 {
     this.ServiceName = serviceName;
     this.PartitionId = partitionId;
 }