コード例 #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;
 }
コード例 #2
0
        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
ファイル: SpaOptions.cs プロジェクト: rahulinti12/net-
 /// <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;
 }