Bari.Plugins.Fsharp.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("Fsharp plugin loaded");

            Bind<ISlnProject>().To<FsharpSlnProject>();
            Bind<IFsprojBuilderFactory>().ToFactory();

            Bind<ICleanExtension>().To<FsprojCleaner>();

            Bind<IYamlProjectParametersLoader>().To<FsharpParametersLoader>();
            Bind<IYamlProjectParametersLoader>().To<FsharpFileOrderLoader>();

            Bind<IMSBuildProjectSection>().To<PropertiesSection>().WhenInjectedInto<FsprojGenerator>();
            Bind<IMSBuildProjectSection>().To<ReferencesSection>().WhenInjectedInto<FsprojGenerator>().WithConstructorArgument("sourceSetName", "fs");
            Bind<IMSBuildProjectSection>().To<VersionSection>().WhenInjectedInto<FsprojGenerator>();
            Bind<IMSBuildProjectSection>().To<SourceItemsSection>().WhenInjectedInto<FsprojGenerator>();

            var store = Kernel.Get<IBuilderStore>();
            var fsprojBuilderFactory = Kernel.Get<IFsprojBuilderFactory>();
            Rebind<IFsprojBuilderFactory>().ToConstant(
                new StoredFsprojBuilderFactory(fsprojBuilderFactory, store));
        }
BariModule