コード例 #1
0
        public NetFx4Application(Dictionary <string, object> application_options, Dictionary <string, string[]> required_files,
                                 Dictionary <string, string[]> required_directories, string analyzer_type, EventHandler <EnvironmentEventArgs> message_handler, NuGetPackageSource package_source) :
            this(application_options, required_files, required_directories, analyzer_type, message_handler)
        {
            if (package_source != null)
            {
                this.NugetPackageSource       = package_source;
                this.PackageSourceInitialized = true;

                if (this.DataSources.Count == 0)
                {
                    // this.DataSources.Add(new OSSIndexDataSource(this, this.DataSourceOptions));
                    this.DataSources.Add(new OSSIndexApiv3DataSource(this, DataSourceOptions));
                }
            }
            else
            {
                throw new ArgumentException("Package source is null.", "package_source");
            }
        }
コード例 #2
0
 public AspNetApplication(Dictionary <string, object> application_options, EventHandler <EnvironmentEventArgs> message_handler, NuGetPackageSource package_source) :
     base(application_options, new Dictionary <string, string[]> {
     { "AppConfig", new string[] { "@", "Web.config" } }
 }, new Dictionary <string, string[]>(), "AspNet", message_handler, package_source)
 {
 }