예제 #1
0
 public DeployService(IDeployServiceFactory dsFactory, IConfFactory cFactory)
 {
     _dsFactory = dsFactory;
     _cFactory = cFactory;
     _logger = _dsFactory.CreateLoggerObj();
     _logger.Info("Service instance is created");
     if (OperationContext.Current != null)
         OperationContext.Current.Channel.Closing += ClearLocks;
 }
예제 #2
0
 public DeployService(IDeployServiceFactory dsFactory, IConfFactory cFactory)
 {
     _dsFactory = dsFactory;
     _cFactory  = cFactory;
     _logger    = _dsFactory.CreateLoggerObj();
     _logger.Info("Service instance is created");
     if (OperationContext.Current != null)
     {
         OperationContext.Current.Channel.Closing += ClearLocks;
     }
 }
예제 #3
0
파일: Conf.cs 프로젝트: wurdum/deployer
        public Conf(string sessionKey, DeployContext context, IConfFactory factory)
        {
            if (sessionKey == null || sessionKey.Length >= 50)
                throw new ArgumentException("Session key should be no more than 50 characters", "sessionKey");

            var confSection = DeployerConfigurationSection.Instance;

            SessionKey = sessionKey;
            _context = context;
            _updateRules = new UpdateRulesBuilder(confSection);

            InitializeSettings(confSection);

            PackageManager = factory.CreatePackageManager();
            IISManager = factory.CreateIISManager(IIS, _context.UriName);
        }
예제 #4
0
        public Conf(string sessionKey, DeployContext context, IConfFactory factory)
        {
            if (sessionKey == null || sessionKey.Length >= 50)
            {
                throw new ArgumentException("Session key should be no more than 50 characters", "sessionKey");
            }

            var confSection = DeployerConfigurationSection.Instance;

            SessionKey   = sessionKey;
            _context     = context;
            _updateRules = new UpdateRulesBuilder(confSection);

            InitializeSettings(confSection);

            PackageManager = factory.CreatePackageManager();
            IISManager     = factory.CreateIISManager(IIS, _context.UriName);
        }
예제 #5
0
 public IConf CreateConfObj(string sessionKey, DeployContext deployContext, IConfFactory confFactory)
 {
     return _confFactory(sessionKey, deployContext, confFactory);
 }
예제 #6
0
 public IConf CreateConfObj(string sessionKey, DeployContext deployContext, IConfFactory confFactory)
 {
     return(_confFactory(sessionKey, deployContext, confFactory));
 }