示例#1
0
 /// <summary>
 /// Constructs a new instance of <see cref="SpaOptions"/>.
 /// </summary>
 /// <param name="copyFromOptions">An instance of <see cref="SpaOptions"/> from which values should be copied.</param>
 internal SpaOptions(SpaOptions copyFromOptions)
 {
     _defaultPage                 = copyFromOptions.DefaultPage;
     _packageManagerCommand       = copyFromOptions.PackageManagerCommand;
     DefaultPageStaticFileOptions = copyFromOptions.DefaultPageStaticFileOptions;
     SourcePath = copyFromOptions.SourcePath;
 }
        public DefaultSpaBuilder(IApplicationBuilder applicationBuilder, SpaOptions options)
        {
            ApplicationBuilder = applicationBuilder
                                 ?? throw new ArgumentNullException(nameof(applicationBuilder));

            Options = options
                      ?? throw new ArgumentNullException(nameof(options));
        }
示例#3
0
 /// <summary>
 /// Constructs a new instance of <see cref="SpaOptions"/>.
 /// </summary>
 /// <param name="copyFromOptions">An instance of <see cref="SpaOptions"/> from which values should be copied.</param>
 internal SpaOptions(SpaOptions copyFromOptions)
 {
     _defaultPage            = copyFromOptions.DefaultPage;
     DefaultPageFileProvider = copyFromOptions.DefaultPageFileProvider;
     SourcePath = copyFromOptions.SourcePath;
 }
示例#4
0
 /// <summary>
 /// Constructs a new instance of <see cref="SpaOptions"/>.
 /// </summary>
 /// <param name="copyFromOptions">An instance of <see cref="SpaOptions"/> from which values should be copied.</param>
 internal SpaOptions(SpaOptions copyFromOptions)
 {
     _defaultPage = copyFromOptions.DefaultPage;
     DefaultPageStaticFileOptions = copyFromOptions.DefaultPageStaticFileOptions;
     SourcePath = copyFromOptions.SourcePath;
 }