Changed project names
This commit is contained in:
parent
b4c4aa4010
commit
a29e57e66d
130 changed files with 501 additions and 504 deletions
|
|
@ -1,35 +0,0 @@
|
|||
using System.ServiceProcess;
|
||||
|
||||
using Autofac;
|
||||
|
||||
using VirtualPrinter.Agent.Autofac;
|
||||
using VirtualPrinter.Logging;
|
||||
using VirtualPrinter.ProgressInfo.Autofac;
|
||||
|
||||
namespace VirtualPrinter.Agent.Service
|
||||
{
|
||||
/// <summary>
|
||||
/// The Windows service that is registered during an installation
|
||||
/// </summary>
|
||||
public static class Program
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
var builder = new ContainerBuilder();
|
||||
|
||||
builder.RegisterModule(new VirtualPrinterModule());
|
||||
builder.RegisterModule(new ProgressInfoModule());
|
||||
builder.RegisterModule(new LoggerModule());
|
||||
builder.RegisterType<VirtualPrinterService>().As<ServiceBase>();
|
||||
|
||||
var container = builder.Build();
|
||||
|
||||
var servicesToRun = new[]
|
||||
{
|
||||
container.Resolve<ServiceBase>()
|
||||
};
|
||||
|
||||
ServiceBase.Run(servicesToRun);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue