public void Start() { if (!IsStartCompleted) { var ignore = _outputWindowPane.Value; StartCompleted?.Invoke(this, EventArgs.Empty); } IsStartCompleted = true; }
public void Start() { if (!IsStartCompleted) { StartConsoleDispatcher(); StartCompleted?.Invoke(this, EventArgs.Empty); } IsStartCompleted = true; }
public void StartAsync() { WebClient wc = new WebClient(); Action <object> d = x => wc.DownloadString(new Uri("www.google.com")); d.BeginInvoke(null, (x) => { IsReadyToGo = true; StartCompleted?.Invoke(this, new EventArgs()); }, null); }
public async Task StartAsync() { if (!IsStartCompleted) { await StartConsoleDispatcherAsync(); StartCompleted?.Invoke(this, EventArgs.Empty); } IsStartCompleted = true; }
/// <summary> /// This method is called when the Microservice completes the start request. /// </summary> internal virtual void OnStartCompleted() { try { mDataCollection.LogMessage(LoggingLevel.Status, "Microservice has started."); StartCompleted?.Invoke(mService, new StartEventArgs()); } catch (Exception ex) { mDataCollection?.LogException("StartCompleted event / external exception thrown on event", ex); } }
private void Wc_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e) { IsReadyToGo = true; StartCompleted?.Invoke(this, new EventArgs()); }