Beispiel #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));
        }
Beispiel #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;
 }
Beispiel #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;
 }