Пример #1
0
 /// <summary>
 /// Starts all services.
 /// </summary>
 /// <param name="client">The client.</param>
 protected void StartAllServices(NetworkClient client)
 {
     foreach (var service in this.Services)
     {
         service.Value.ID = service.Key;
         service.Value.ClientSetter = client;
         service.Value.Start();
     }
 }
Пример #2
0
 /// <summary>
 /// Stops all services.
 /// </summary>
 /// <param name="client">The client.</param>
 protected void StopAllServices(NetworkClient client)
 {
     foreach (var service in this.Services)
     {
         service.Value.Stop();
         service.Value.ID = 0;
         service.Value.ClientSetter = null;
     }
 }