/// <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)); }
/// <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; }
/// <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; }