-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
26 lines (23 loc) · 875 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using Topshelf;
namespace ScalableBytes.NewRelic.AzureStorageQueueSize.Plugin
{
class Program
{
public static void Main()
{
HostFactory.Run(x =>
{
x.Service<AgentManager>(s =>
{
s.ConstructUsing(name => new AgentManager());
s.WhenStarted(tc => tc.Start());
s.WhenStopped(tc => tc.Stop());
});
x.RunAsLocalSystem();
x.SetDescription("NewRelic Windows Azure Storage Queue Size plugin");
x.SetDisplayName("ScalableBytes NewRelic Azure Queues");
x.SetServiceName("ScalableBytes.NewRelic.AzureStorageQueueSize.Plugin");
});
}
}
}