Bari.Plugins.CodeContracts.BariModule.Load C# (CSharp) Method

Load() public method

Loads the module into the kernel.
public Load ( ) : void
return void
        public override void Load()
        {
            log.Info("CodeContracts plugin loaded");

            Bind<IMSBuildProjectSection>().To<CodeContractsSection>().WhenInjectedInto<CsprojGenerator>();
            Bind<IYamlProjectParametersLoader>().To<YamlContractsParametersLoader>();

            var protocolRegistry = Kernel.Get<IDependencyFingerprintProtocolRegistry>();
            protocolRegistry.RegisterEnum(i => (ContractAssemblyMode) i);
            protocolRegistry.RegisterEnum(i => (ContractCheckingLevel)i);
            protocolRegistry.RegisterEnum(i => (ContractReferenceMode)i);
        }
BariModule