This class is responsible for all the REST communication with the database backup REST endpoints.
 /// <summary>
 /// Constructs a database backup adapter
 /// </summary>
 /// <param name="profile">The current azure profile</param>
 /// <param name="subscription">The current azure subscription</param>
 public AzureSqlDatabaseBackupAdapter(AzureContext context)
 {
     Context = context;
     _subscription = context.Subscription;
     Communicator = new AzureSqlDatabaseBackupCommunicator(Context);
 }
 /// <summary>
 /// Constructs a database backup adapter
 /// </summary>
 /// <param name="profile">The current azure profile</param>
 /// <param name="subscription">The current azure subscription</param>
 public AzureSqlDatabaseBackupAdapter(AzureProfile Profile, AzureSubscription subscription)
 {
     this.Profile       = Profile;
     this._subscription = subscription;
     Communicator       = new AzureSqlDatabaseBackupCommunicator(Profile, subscription);
 }
 /// <summary>
 /// Constructs a database backup adapter
 /// </summary>
 /// <param name="profile">The current azure profile</param>
 /// <param name="subscription">The current azure subscription</param>
 public AzureSqlDatabaseBackupAdapter(AzureProfile Profile, AzureSubscription subscription)
 {
     this.Profile = Profile;
     this._subscription = subscription;
     Communicator = new AzureSqlDatabaseBackupCommunicator(Profile, subscription);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Constructs a database backup adapter
 /// </summary>
 /// <param name="profile">The current azure profile</param>
 /// <param name="subscription">The current azure subscription</param>
 public AzureSqlDatabaseBackupAdapter(IAzureContext context)
 {
     Context       = context;
     _subscription = context?.Subscription;
     Communicator  = new AzureSqlDatabaseBackupCommunicator(Context);
 }