/// <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(IAzureContext context) { Context = context; _subscription = context?.Subscription; Communicator = new AzureSqlDatabaseBackupCommunicator(Context); }