/// <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); } }
/// <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); }