Exemplo n.º 1
0
        public void Start()
        {
            if (!IsStartCompleted)
            {
                var ignore = _outputWindowPane.Value;
                StartCompleted?.Invoke(this, EventArgs.Empty);
            }

            IsStartCompleted = true;
        }
Exemplo n.º 2
0
        public void Start()
        {
            if (!IsStartCompleted)
            {
                StartConsoleDispatcher();
                StartCompleted?.Invoke(this, EventArgs.Empty);
            }

            IsStartCompleted = true;
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        public async Task StartAsync()
        {
            if (!IsStartCompleted)
            {
                await StartConsoleDispatcherAsync();

                StartCompleted?.Invoke(this, EventArgs.Empty);
            }

            IsStartCompleted = true;
        }
Exemplo n.º 5
0
 /// <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);
     }
 }
Exemplo n.º 6
0
 private void Wc_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
 {
     IsReadyToGo = true;
     StartCompleted?.Invoke(this, new EventArgs());
 }