Start() public method

public Start ( ) : void
return void
Ejemplo n.º 1
0
 static DataBaseManager()
 {
     var path = ConfigurationManager.AppSettings["DataLoggerPath"];
     var loggerPath = path ?? @"C:\DataLogger.log";
     var fileLogger = File.Exists(loggerPath) ? File.AppendText(loggerPath) : File.CreateText(loggerPath);
     Logger = new Logger(fileLogger);
     Logger.Start();
 }
Ejemplo n.º 2
0
 static ServiceFactory()
 {
     var loggerPath = Path.Combine(ServiceConfig.ServicesResourceLibLocation, "ServiceLogger.log");
     var fileLogger = File.Exists(loggerPath) ? File.AppendText(loggerPath) : File.CreateText(loggerPath);
     ServiceLogger = new Logger(fileLogger);
     Builder = new ServiceBuilder();
     Services = new Dictionary<string, Service>();
     DirectoryCatalog = new DirectoryCatalog(ServiceConfig.ServicesDllLocation);
     CompositionContainer = new CompositionContainer(DirectoryCatalog);
     ServiceLogger.Start();
 }