예제 #1
0
        protected DefaultProjectFileProvider GetProjectFileProvider(DetectorOptions options = null)
        {
            options = options ?? new DetectorOptions();

            var providers = new IProjectFileProvider[]
            {
                new ExplicitProjectFileProvider(
                    Options.Create(options),
                    NullLogger <ExplicitProjectFileProvider> .Instance),
                new RootDirectoryProjectFileProvider(NullLogger <RootDirectoryProjectFileProvider> .Instance),
                new ProbeAndFindProjectFileProvider(
                    NullLogger <ProbeAndFindProjectFileProvider> .Instance,
                    Options.Create(options)),
            };

            return(new DefaultProjectFileProvider(providers));
        }
예제 #2
0
        protected DefaultProjectFileProvider GetProjectFileProvider(
            DotNetCoreScriptGeneratorOptions options = null)
        {
            if (options == null)
            {
                options = new DotNetCoreScriptGeneratorOptions();
            }

            var providers = new IProjectFileProvider[]
            {
                new ExplicitProjectFileProvider(
                    Options.Create(options),
                    NullLogger <ExplicitProjectFileProvider> .Instance),
                new RootDirectoryProjectFileProvider(NullLogger <RootDirectoryProjectFileProvider> .Instance),
                new ProbeAndFindProjectFileProvider(NullLogger <ProbeAndFindProjectFileProvider> .Instance),
            };

            return(new DefaultProjectFileProvider(providers));
        }
예제 #3
0
 public AppDomainTypeFinder(IProjectFileProvider fileProvider = null)
 {
     this._fileProvider = fileProvider ?? CommonHelper.DefaultFileProvider;
 }
예제 #4
0
 public WebAppTypeFinder(IProjectFileProvider fileProvider = null) : base(fileProvider)
 {
 }