Example #1
0
 public void Dispose()
 {
     _logger = null;
     _garbage = null;
     _responses = null;
     //_listeningSocket.Dispose();
     _listeningSocket = null;
     if (_requestThread.IsAlive)
         _requestThread.Abort();
     _requestThread = null;
 }
Example #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);
        }
Example #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");
        }
Example #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");
        }
Example #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;
 }
 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");
		}
 public RecyclableStrategy(IGarbage garbage, ProcessingData processingData)
     : base(garbage, processingData)
 {
 }
Example #12
0
 protected Strategy(IGarbage garbage, ProcessingData processingData)
 {
     this.Garbage        = garbage;
     this.processingData = new ProcessingData();
 }
 public ConfigApiService(IConfigurationService configurationService, IGarbage garbage)
 {
     _configurationService = configurationService;
     _garbage = garbage;
 }
Example #14
0
 public IWebUtility CreateWebUtility(IGarbage garbage)
 {
     return(new WebUtility(garbage));
 }
 public IWebUtility CreateWebUtility(IGarbage garbage)
 {
     return new WebUtility(garbage);
 }
Example #16
0
 public WebUtility(IGarbage garbage)
 {
     _garbage = garbage;
 }
Example #17
0
 public WebUtility(IGarbage garbage)
 {
     _garbage = garbage;
 }
 public ConfigApiService(IConfigurationService configurationService, IGarbage garbage)
 {
     _configurationService = configurationService;
     _garbage = garbage;
 }