public AddDisabled ( |
||
serviceType | Service type to disable. It must not already exist in this container otherwise an exception is thrown. | |
return | ISimpleServiceContainer |
public ISimpleServiceContainer AddDisabled( Type serviceType )
{
if( ReferenceEquals( serviceType, null ) ) throw new ArgumentNullException( "serviceType" );
if( GetDirectService( serviceType ) != null ) throw new CKException( CoreResources.DirectServicesCanNotBeDisabled, serviceType.FullName );
DoAdd( serviceType, new ServiceEntry() );
return this;
}