Ejemplo n.º 1
0
 /// <summary>
 /// Registers the service.
 /// </summary>
 /// <param name="id">The id of the service.</param>
 /// <param name="service">The service.</param>
 public virtual void RegisterService(int id, INetworkClientService service)
 {
     Contract.Requires(id >= 0);
     this.Services.Add(id, service);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Registers the service.
 /// </summary>
 /// <param name="id">The id of the service.</param>
 /// <param name="service">The service.</param>
 public override void RegisterService(int id, INetworkClientService service)
 {
     lock (this.ConnectionLock)
     {
         base.RegisterService(id, service);
     }
 }