public static void BindCore(this LightweightKernel kernel) { kernel.Bind <IActionDispatch, ActionDispatch>(); kernel.Bind <IHostPlatformDetector, HostPlatformDetector>(); kernel.Bind <ILogger, Logger>(); kernel.Bind <IWorkingDirectoryProvider, WorkingDirectoryProvider>(); }
private LightweightKernel GetKernel(bool noFeaturePropagation = false) { var kernel = new LightweightKernel(); kernel.Bind <IFeatureManager, FeatureManager>(); if (noFeaturePropagation) { kernel.Bind <IModuleExecution, MockModuleExecutionNoFeatureSupport>(); } else { kernel.Bind <IModuleExecution, MockModuleExecution>(); } return(kernel); }
public static void BindPackages(this LightweightKernel kernel) { kernel.Bind <IAutomaticModulePackager, AutomaticModulePackager>(); kernel.Bind <IDeduplicator, Deduplicator>(); kernel.Bind <IPackageCache, PackageCache>(); kernel.Bind <IPackageRetrieval, PackageRetrieval>(); kernel.Bind <IPackageManager, PackageManager>(); kernel.Bind <IPackageLookup, PackageLookup>(); kernel.Bind <IPackageCacheConfiguration, PackageCacheConfiguration>(); kernel.BindAndKeepInstance <IPackageRedirector, PackageRedirector>(); kernel.Bind <IPackageLocator, PackageLocator>(); }
public static void BindFileFilter(this LightweightKernel kernel) { kernel.Bind <IFileFilterParser, FileFilterParser>(); }
public static void BindTargets(this LightweightKernel kernel) { kernel.Bind <ILanguageStringProvider, LanguageStringProvider>(); }
public static void BindJSIL(this LightweightKernel kernel) { kernel.Bind <IJSILProvider, JSILProvider>(); }
public static void BindGeneration(this LightweightKernel kernel) { kernel.Bind <IExcludedServiceAwareProjectDetector, ExcludedServiceAwareProjectDetector>(); kernel.Bind <IExternalProjectReferenceResolver, ExternalProjectReferenceResolver>(); kernel.Bind <IContentProjectGenerator, ContentProjectGenerator>(); kernel.Bind <INuGetConfigMover, NuGetConfigMover>(); kernel.Bind <INuGetReferenceDetector, NuGetReferenceDetector>(); kernel.Bind <INuGetRepositoriesConfigGenerator, NuGetRepositoriesConfigGenerator>(); kernel.Bind <IProjectGenerator, ProjectGenerator>(); kernel.Bind <IProjectInputGenerator, ProjectInputGenerator>(); kernel.Bind <IProjectLoader, ProjectLoader>(); kernel.Bind <IServiceInputGenerator, ServiceInputGenerator>(); kernel.Bind <IServiceReferenceTranslator, ServiceReferenceTranslator>(); kernel.Bind <ISolutionGenerator, SolutionGenerator>(); kernel.Bind <ISolutionInputGenerator, SolutionInputGenerator>(); }
public static void BindBuildResources(this LightweightKernel kernel) { kernel.Bind <IResourceProvider, ResourceProvider>(); }
private LightweightKernel GetKernel(bool noFeaturePropagation = false) { var kernel = new LightweightKernel(); kernel.Bind<IFeatureManager, FeatureManager>(); if (noFeaturePropagation) { kernel.Bind<IModuleExecution, MockModuleExecutionNoFeatureSupport>(); } else { kernel.Bind<IModuleExecution, MockModuleExecution>(); } return kernel; }