Beispiel #1
0
 private void SetupService(HostConfigurator configurator, ILifetimeScope container)
 {
     configurator.AutofacService <IAgarIoService>(container, serviceConfigurator =>
     {
         serviceConfigurator.WhenStarted(s => s.Start());
         serviceConfigurator.WhenStopped(s => s.Stop());
     });
     configurator.SetServiceName("AgarIo.Service");
     configurator.SetDisplayName("AgarIo Service");
     configurator.SetDescription("Serves AgarIo Game");
     configurator.UseNLog();
 }
Beispiel #2
0
 private void SetupService(HostConfigurator configurator, ILifetimeScope container)
 {
     configurator.AutofacService<IAgarIoService>(container, serviceConfigurator =>
     {
         serviceConfigurator.WhenStarted(s => s.Start());
         serviceConfigurator.WhenStopped(s => s.Stop());
     });
     configurator.SetServiceName("AgarIo.Service");
     configurator.SetDisplayName("AgarIo Service");
     configurator.SetDescription("Serves AgarIo Game");
     configurator.UseNLog();
 }