static void Main(string[] args) { ILogger logger = new Logger("csharp-clipboard-example"); LoopServer.Start(new Loop { Logger = logger }, logger); }
public static void Main(string[] args) { ILogger logger = new Logger("csharp-clipboard-example"); TaskScheduler.UnobservedTaskException += (sender, eventArgs) => { logger.Error("Unhandled Task Exception", new Dictionary <string, object>() { { "error", eventArgs.Exception } }); }; LoopServer.Start(new Loop { Logger = logger }, logger); }