Ejemplo n.º 1
0
 /// <summary>
 /// Constructs a database adapter
 /// </summary>
 /// <param name="profile">The current azure profile</param>
 /// <param name="subscription">The current azure subscription</param>
 public AzureSqlDatabaseReplicationAdapter(IAzureContext context)
 {
     Context                 = context;
     _subscription           = context?.Subscription;
     ReplicationCommunicator = new AzureSqlDatabaseReplicationCommunicator(Context);
     DatabaseCommunicator    = new AzureSqlDatabaseCommunicator(Context);
     ServerCommunicator      = new AzureSqlServerCommunicator(Context);
 }
 /// <summary>
 /// Constructs a database adapter
 /// </summary>
 /// <param name="profile">The current azure profile</param>
 /// <param name="subscription">The current azure subscription</param>
 public AzureSqlDatabaseReplicationAdapter(AzureProfile Profile, AzureSubscription subscription)
 {
     this.Profile            = Profile;
     this._subscription      = subscription;
     ReplicationCommunicator = new AzureSqlDatabaseReplicationCommunicator(Profile, subscription);
     DatabaseCommunicator    = new AzureSqlDatabaseCommunicator(Profile, subscription);
     ServerCommunicator      = new AzureSqlServerCommunicator(Profile, subscription);
 }
 /// <summary>
 /// Constructs a server adapter
 /// </summary>
 /// <param name="context">The current azure profile</param>
 public AzureSqlServerAdapter(IAzureContext context)
 {
     Context      = context;
     Communicator = new AzureSqlServerCommunicator(Context);
 }
 /// <summary>
 /// Constructs a ServiceObjective adapter
 /// </summary>
 /// <param name="profile">The current azure profile</param>
 /// <param name="subscription">The current azure subscription</param>
 public AzureSqlServerServiceObjectiveAdapter(IAzureContext context)
 {
     Context                  = context;
     ServerCommunicator       = new AzureSqlServerCommunicator(Context);
     CapabilitiesCommunicator = new AzureSqlCapabilitiesCommunicator(Context);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Constructs a server adapter
 /// </summary>
 /// <param name="profile">The current azure profile</param>
 /// <param name="subscription">The current azure subscription</param>
 public AzureSqlServerAdapter(AzureProfile profile, AzureSubscription subscription)
 {
     Profile      = profile;
     Communicator = new AzureSqlServerCommunicator(Profile, subscription);
 }