예제 #1
0
 public ClientRuntimeManager(IClientFactory clientFactory, IClientPersistor clientPersistor, IClientTemplateRepositoryBuilder builder)
 {
     lcts                 = new LimitedConcurrencyLevelTaskScheduler(5);
     factory              = new TaskFactory(lcts);
     this.clientFactory   = clientFactory;
     this.builder         = builder;
     this.clientPersistor = clientPersistor;
     clients              = new DefaultClientRepository();
 }
예제 #2
0
        public void Stop()
        {
            foreach (var client in clients)
            {
                Stop(client);
            }

            clientFactory   = null;
            clientPersistor = null;
            builder         = null;
        }
예제 #3
0
 public ClientController(
     IPluginTemplateRepositoryBuilder pluginBuilder,
     IClientTemplateRepositoryBuilder clientBuilder,
     IClientPersistor clientPersistor)
 => (this.pluginBuilder, this.clientBuilder, this.clientPersistor) = (pluginBuilder, clientBuilder, clientPersistor);
예제 #4
0
 public InitRuntimeManager(IClientFactory clientFactory, IClientPersistor clientPersistor, IClientTemplateRepositoryBuilder builder) : base(clientFactory, clientPersistor, builder)
 {
 }