Exemple #1
0
 internal async Task ServerStartingNotification(ServerStartingNotification notification)
 {
     if (ServerStarting != null)
     {
         await ServerStarting?.Invoke(notification);
     }
 }
Exemple #2
0
 /// <summary>
 /// Button event to start/stop the server.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void startServerToggleButton_CheckedChanged(object sender, EventArgs e)
 {
     if (startServerToggleButton.Checked)
     {
         ServerStarting?.Invoke(sender, e);
         InvokeUI(() =>
         {
             startServerToggleButton.Text = "Stop";
             clearButton.Enabled          = true;
         });
     }
     else
     {
         ServerEnding?.Invoke(sender, e);
         InvokeUI(() =>
         {
             startServerToggleButton.Text = "Start";
             clearButton.Enabled          = false;
         });
     }
 }
Exemple #3
0
 protected virtual void OnServerStarting(string e)
 {
     ServerStarting?.Invoke(this, e);
 }
Exemple #4
0
 protected void OnServerStarting()
 {
     ServerStarting?.Invoke(mvarID);
 }
Exemple #5
0
 private void StartServerButton_OnClick(object sender, RoutedEventArgs e)
 {
     ServerStarting?.Invoke(this, ServerNameTextBox.Text);
     BuildServerName();
 }