Ninject.Modules.NinjectModule.OnUnload C# (CSharp) Method

OnUnload() public method

Called when the module is unloaded from a kernel.
public OnUnload ( IKernelConfiguration kernelConfiguration ) : void
kernelConfiguration IKernelConfiguration The kernel configuration that is unloading the module.
return void
        public void OnUnload(IKernelConfiguration kernelConfiguration)
        {
            this.Unload();
            this.Bindings.Map(this.KernelConfiguration.RemoveBinding);
            this.KernelConfiguration = null;
        }