public void DefineService(Type serviceType, Type implementationType) { Bind(serviceType, implementationType); _services[serviceType] = new ServiceBindingInfo { ServiceType = serviceType, ImplementationType = implementationType }; }
public void DefineExternalService(Type serviceType) { Bind(serviceType, () => throw new Exception()); _services[serviceType] = new ServiceBindingInfo { ServiceType = serviceType, IsExternal = true }; }