Exemplo n.º 1
0
        private static void LogMessage(LogMessageArgs args)
        {
            var simpleEventBus = SimpleEventBus <AsyncMessageEvent> .Resolve();

            if (args?.Message != null)
            {
                simpleEventBus.Raise(new AsyncMessageEvent(args.Message.ToString()));
            }
        }
 public static AsyncUiHelperForMessageEventBus CreateAsyncUiHelperForMessageEventBus(this Control invokeControl, UpdateUiMessageDelegate updateMessage, ISimpleEventBus <AsyncMessageEvent> bus = null)
 {
     return(new AsyncUiHelperForMessageEventBus(invokeControl, updateMessage, bus ?? SimpleEventBus <AsyncMessageEvent> .Resolve()));
 }