예제 #1
0
 public static void BindCore(this LightweightKernel kernel)
 {
     kernel.Bind <IActionDispatch, ActionDispatch>();
     kernel.Bind <IHostPlatformDetector, HostPlatformDetector>();
     kernel.Bind <ILogger, Logger>();
     kernel.Bind <IWorkingDirectoryProvider, WorkingDirectoryProvider>();
 }
예제 #2
0
        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);
        }
예제 #3
0
 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>();
 }
예제 #4
0
 public static void BindFileFilter(this LightweightKernel kernel)
 {
     kernel.Bind <IFileFilterParser, FileFilterParser>();
 }
예제 #5
0
 public static void BindTargets(this LightweightKernel kernel)
 {
     kernel.Bind <ILanguageStringProvider, LanguageStringProvider>();
 }
예제 #6
0
 public static void BindJSIL(this LightweightKernel kernel)
 {
     kernel.Bind <IJSILProvider, JSILProvider>();
 }
예제 #7
0
 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>();
 }
예제 #8
0
 public static void BindBuildResources(this LightweightKernel kernel)
 {
     kernel.Bind <IResourceProvider, ResourceProvider>();
 }
예제 #9
0
 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;
 }