Exemplo n.º 1
0
        public void Unregister(IActivationHandler service)
        {
            // Validate parameters

            if (service == null)
                throw new ArgumentNullException("service");

            if (!registeredServices.Contains(service))
                throw new InvalidOperationException(ResourceHelper.GetErrorResource("Exception_InvalidOperation_CannotUnregisterUnregisteredService"));

            // Remove the service from the internal list

            registeredServices.Remove(service);
        }
Exemplo n.º 2
0
        public void Register(IActivationHandler service)
        {
            // Validate parameters

            if (service == null)
                throw new ArgumentNullException("service");

            if (registeredServices.Contains(service))
                throw new InvalidOperationException(ResourceHelper.GetErrorResource("Exception_InvalidOperation_CannotRegisterServiceMultipleTimes"));

            // Add the service to the internal list

            registeredServices.Add(service);
        }
Exemplo n.º 3
0
        public void Unregister(IActivationHandler service)
        {
            // Validate parameters

            if (service == null)
            {
                throw new ArgumentNullException("service");
            }

            if (!registeredServices.Contains(service))
            {
                throw new InvalidOperationException(ResourceHelper.GetErrorResource("Exception_InvalidOperation_CannotUnregisterUnregisteredService"));
            }

            // Remove the service from the internal list

            registeredServices.Remove(service);
        }
Exemplo n.º 4
0
        public void Register(IActivationHandler service)
        {
            // Validate parameters

            if (service == null)
            {
                throw new ArgumentNullException("service");
            }

            if (registeredServices.Contains(service))
            {
                throw new InvalidOperationException(ResourceHelper.GetErrorResource("Exception_InvalidOperation_CannotRegisterServiceMultipleTimes"));
            }

            // Add the service to the internal list

            registeredServices.Add(service);
        }
 public void Unregister(IActivationHandler service)
 {
     RegisteredServices.Remove(service);
 }
 public void Register(IActivationHandler service)
 {
     RegisteredServices.Add(service);
 }
Exemplo n.º 7
0
 public void Unregister(IActivationHandler service)
 {
     throw new NotImplementedException();
 }