protected async override Task OnApplicationReadyEvent(ApplicationReadyEventArgs e) { try { // *** // *** Subscribe to refresh events. // *** this.EventAggregator.GetEvent <RefreshEvent>().Subscribe((args) => this.OnRefreshEvent(args)); // *** // *** Set the dispatcher. // *** this.Dispatcher = e.Dispatcher; // *** // *** Initialize the LIFX client. // *** await this.InitializeLifxClient(); } catch (Exception ex) { this.EventAggregator.GetEvent <MessageEvent>().Publish(new MessageEventArgs(ex)); } }
protected virtual Task OnApplicationReadyEvent(ApplicationReadyEventArgs e) { return(Task.FromResult(0)); }