mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-24 02:30:13 +00:00
25 lines
786 B
C#
25 lines
786 B
C#
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using Microsoft.AspNetCore.Builder;
|
|
using System;
|
|
|
|
namespace Microsoft.AspNetCore.SpaServices
|
|
{
|
|
internal class DefaultSpaBuilder : ISpaBuilder
|
|
{
|
|
public IApplicationBuilder ApplicationBuilder { get; }
|
|
|
|
public SpaOptions Options { get; }
|
|
|
|
public DefaultSpaBuilder(IApplicationBuilder applicationBuilder, SpaOptions options)
|
|
{
|
|
ApplicationBuilder = applicationBuilder
|
|
?? throw new ArgumentNullException(nameof(applicationBuilder));
|
|
|
|
Options = options
|
|
?? throw new ArgumentNullException(nameof(options));
|
|
}
|
|
}
|
|
}
|