Пример #1
0
 internal ThreeTierConfiguration(SapDeploymentType deploymentType, string appResourceGroup, NetworkConfiguration networkConfiguration, CentralServerConfiguration centralServer, ApplicationServerConfiguration applicationServer, DatabaseConfiguration databaseServer, HighAvailabilityConfiguration highAvailabilityConfig) : base(deploymentType, appResourceGroup)
 {
     NetworkConfiguration   = networkConfiguration;
     CentralServer          = centralServer;
     ApplicationServer      = applicationServer;
     DatabaseServer         = databaseServer;
     HighAvailabilityConfig = highAvailabilityConfig;
     DeploymentType         = deploymentType;
 }
Пример #2
0
        public ThreeTierConfiguration(string appResourceGroup, CentralServerConfiguration centralServer, ApplicationServerConfiguration applicationServer, DatabaseConfiguration databaseServer) : base(appResourceGroup)
        {
            if (appResourceGroup == null)
            {
                throw new ArgumentNullException(nameof(appResourceGroup));
            }
            if (centralServer == null)
            {
                throw new ArgumentNullException(nameof(centralServer));
            }
            if (applicationServer == null)
            {
                throw new ArgumentNullException(nameof(applicationServer));
            }
            if (databaseServer == null)
            {
                throw new ArgumentNullException(nameof(databaseServer));
            }

            CentralServer     = centralServer;
            ApplicationServer = applicationServer;
            DatabaseServer    = databaseServer;
            DeploymentType    = SapDeploymentType.ThreeTier;
        }