예제 #1
0
        static void Main(string[] args)
        {
            ILogger logger = new Logger("csharp-clipboard-example");

            LoopServer.Start(new Loop
            {
                Logger = logger
            }, logger);
        }
예제 #2
0
        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);
        }