예제 #1
0
 public ClassicRunner(ILogHandler logHandler)
 {
     Logger.SetLogHandler(logHandler);
     openService_  = new OpenService(Logger, ServerConnector, 1);
     checkService_ = new CheckService(Logger, ServerConnector);
     closeService_ = new CloseService(Logger, ServerConnector);
 }
예제 #2
0
 internal ClassicRunner(ILogHandler logHandler, IServerConnectorFactory serverConnectorFactory)
 {
     ArgumentGuard.NotNull(serverConnectorFactory, nameof(serverConnectorFactory));
     Logger.SetLogHandler(logHandler);
     ServerConnectorFactory = serverConnectorFactory;
     ServerConnector        = ServerConnectorFactory.CreateNewServerConnector(Logger, new Uri(ServerUrl));
     openService_           = new OpenService(Logger, ServerConnector, 1);
     checkService_          = new CheckService(Logger, ServerConnector);
     closeService_          = new CloseService(Logger, ServerConnector);
 }