public void To(Type instanceType) { try { binder.To(instanceType); } catch (ActivationException err) { throw NinjectKernel.WrapExn(err); } }
public void ToConstant <TInstance> (TInstance serviceInstance) where TInstance : TService { try { binder.ToConstant <TInstance> (serviceInstance); } catch (ActivationException err) { throw NinjectKernel.WrapExn(err); } }
public void To <TInstance> () where TInstance : class, TService { try { binder.To <TInstance> (); } catch (ActivationException err) { throw NinjectKernel.WrapExn(err); } }