Пример #1
0
 public void Dispose()
 {
     _logger = null;
     _garbage = null;
     _responses = null;
     //_listeningSocket.Dispose();
     _listeningSocket = null;
     if (_requestThread.IsAlive)
         _requestThread.Abort();
     _requestThread = null;
 }
Пример #2
0
 public void Dispose()
 {
     _logger    = null;
     _garbage   = null;
     _responses = null;
     //_listeningSocket.Dispose();
     _listeningSocket = null;
     if (_requestThread.IsAlive)
     {
         _requestThread.Abort();
     }
     _requestThread = null;
 }
        public ConstructionYard(IDeployerFactory factory, string rootDir)
        {
            _factory = factory;
            _rootDir = rootDir;
            _garbage = _factory.CreateGarbage();
            _logger = _factory.CreateLogger();
            _persist = _factory.CreatePersistence();

            var smallIo = _factory.CreateSmallTextIo(_persist);
            var jsonPersist = new JsonPersistence(smallIo);
            var slugCreator = new SlugCreator();
            _configService = new RealConfigurationService(_rootDir, jsonPersist, slugCreator);
        }
        public ConstructionYard(IDeployerFactory factory, string rootDir)
        {
            _factory = factory;
            _rootDir = rootDir;
            _garbage = _factory.CreateGarbage();
            _logger  = _factory.CreateLogger();
            _persist = _factory.CreatePersistence();

            var smallIo     = _factory.CreateSmallTextIo(_persist);
            var jsonPersist = new JsonPersistence(smallIo);
            var slugCreator = new SlugCreator();

            _configService = new RealConfigurationService(_rootDir, jsonPersist, slugCreator);
        }
Пример #5
0
        public WebServer(ILogger logger, IGarbage garbage, int port = 80)
        {
            _logger = logger;
            _garbage = garbage;
            _port = port;

            _logger.Debug("Starting web server");

            _responses = new ArrayList();
            _listeningSocket = SetupListeningSocket();

            _requestThread = new Thread(WaitForNetworkRequest);
            _requestThread.Start();

            _logger.Debug("Web server is running");
        }
Пример #6
0
        public WebServer(ILogger logger, IGarbage garbage, int port = 80)
        {
            _logger  = logger;
            _garbage = garbage;
            _port    = port;

            _logger.Debug("Starting web server");

            _responses       = new ArrayList();
            _listeningSocket = SetupListeningSocket();

            _requestThread = new Thread(WaitForNetworkRequest);
            _requestThread.Start();

            _logger.Debug("Web server is running");
        }
Пример #7
0
 public DeployerContext(ISimultaneousKeys keys, IProjectSelector projectSelect,
                        ICharDisplay lcd,
                        IIndicators indicatorRefresh, ISound sound, IWebUtility netio, INetwork network,
                        IWebRequestFactory webFactory, IGarbage garbage,
                        IConfigurationService configurationService)
 {
     _keys                 = keys;
     _projectSelect        = projectSelect;
     _lcd                  = lcd;
     _indicatorRefresh     = indicatorRefresh;
     _sound                = sound;
     _netio                = netio;
     _network              = network;
     _webFactory           = webFactory;
     _garbage              = garbage;
     _configurationService = configurationService;
 }
Пример #8
0
 public DeployerContext(ISimultaneousKeys keys, IProjectSelector projectSelect,
                        ICharDisplay lcd,
                        IIndicators indicatorRefresh, ISound sound, IWebUtility netio, INetwork network,
                        IWebRequestFactory webFactory, IGarbage garbage,
                        IConfigurationService configurationService)
 {
     _keys = keys;
     _projectSelect = projectSelect;
     _lcd = lcd;
     _indicatorRefresh = indicatorRefresh;
     _sound = sound;
     _netio = netio;
     _network = network;
     _webFactory = webFactory;
     _garbage = garbage;
     _configurationService = configurationService;
 }
        public static IBuildService Create(BuildServiceProvider which,
                                           IWebRequestFactory webFactory,
                                           IWebUtility netio,
                                           IGarbage garbage)
        {
            switch (which)
            {
            case BuildServiceProvider.AppVeyor:
                return(new AppVeyorBuildService(webFactory, netio));

            case BuildServiceProvider.TeamCity:
                return(new TeamCityBuildService(webFactory, netio));

            case BuildServiceProvider.Failing:
                return(new FailingBuildService());

            case BuildServiceProvider.Succeeding:
                return(new SuceedingBuildService());
            }
            throw new Exception("Invalid build service");
        }
		public static IBuildService Create(BuildServiceProvider which,
		                                   IWebRequestFactory webFactory,
		                                   IWebUtility netio,
                                           IGarbage garbage)
		{
			switch (which)
			{
				case BuildServiceProvider.AppVeyor:
					return new AppVeyorBuildService(webFactory, netio);

				case BuildServiceProvider.TeamCity:
					return new TeamCityBuildService(webFactory, netio);

				case BuildServiceProvider.Failing:
					return new FailingBuildService();

				case BuildServiceProvider.Succeeding:
					return new SuceedingBuildService();
			}
			throw new Exception("Invalid build service");
		}
Пример #11
0
 public RecyclableStrategy(IGarbage garbage, ProcessingData processingData)
     : base(garbage, processingData)
 {
 }
Пример #12
0
 protected Strategy(IGarbage garbage, ProcessingData processingData)
 {
     this.Garbage        = garbage;
     this.processingData = new ProcessingData();
 }
Пример #13
0
 public ConfigApiService(IConfigurationService configurationService, IGarbage garbage)
 {
     _configurationService = configurationService;
     _garbage = garbage;
 }
Пример #14
0
 public IWebUtility CreateWebUtility(IGarbage garbage)
 {
     return(new WebUtility(garbage));
 }
Пример #15
0
 public IWebUtility CreateWebUtility(IGarbage garbage)
 {
     return new WebUtility(garbage);
 }
Пример #16
0
 public WebUtility(IGarbage garbage)
 {
     _garbage = garbage;
 }
Пример #17
0
 public WebUtility(IGarbage garbage)
 {
     _garbage = garbage;
 }
Пример #18
0
 public ConfigApiService(IConfigurationService configurationService, IGarbage garbage)
 {
     _configurationService = configurationService;
     _garbage = garbage;
 }