Exemplo n.º 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();
 }
Exemplo n.º 2
0
        public void Stop()
        {
            foreach (var client in clients)
            {
                Stop(client);
            }

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