Commit 0f2f2563 authored by Artak Mkrtchyan's avatar Artak Mkrtchyan
Browse files

Updated the SavePoints to 5.0

parent 97128c59
......@@ -18,7 +18,7 @@ Create a new class called `OrderState` in the Client Project root directory - an
public static async Task Main(string[] args)
{
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("app");
builder.RootComponents.Add<App>("#app");
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
builder.Services.AddScoped<OrderState>();
......
......@@ -49,7 +49,7 @@ To enable the authentication services, add a call to `AddApiAuthorization` in *P
public static async Task Main(string[] args)
{
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("app");
builder.RootComponents.Add<App>("#app");
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
builder.Services.AddScoped<OrderState>();
......@@ -68,8 +68,8 @@ The added services will be configured by default to use an identity provider on
```csharp
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc()
.AddNewtonsoftJson();
services.AddControllersWithViews();
services.AddRazorPages();
services.AddDbContext<PizzaStoreContext>(options =>
options.UseSqlite("Data Source=pizza.db"));
......
......@@ -11,7 +11,7 @@ namespace BlazingPizza.Client
public static async Task Main(string[] args)
{
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("app");
builder.RootComponents.Add<App>("#app");
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
......
......@@ -11,9 +11,9 @@
<title>Blazing Pizza</title>
</head>
<body>
<app>
<div id="app">
<div class="loading-bar"></div>
</app>
</div>
<div id="blazor-error-ui">
An unhandled error has occurred.
......
......@@ -19,8 +19,8 @@ namespace BlazingPizza.Server
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc()
.AddNewtonsoftJson();
services.AddControllersWithViews();
services.AddRazorPages();
services.AddDbContext<PizzaStoreContext>(options =>
options.UseSqlite("Data Source=pizza.db"));
......
......@@ -11,7 +11,7 @@ namespace BlazingPizza.Client
public static async Task Main(string[] args)
{
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("app");
builder.RootComponents.Add<App>("#app");
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
......
......@@ -11,9 +11,9 @@
<title>Blazing Pizza</title>
</head>
<body>
<app>
<div id="app">
<div class="loading-bar"></div>
</app>
</div>
<div id="blazor-error-ui">
An unhandled error has occurred.
......
......@@ -19,8 +19,9 @@ namespace BlazingPizza.Server
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc()
.AddNewtonsoftJson();
services.AddControllersWithViews();
services.AddRazorPages();
services.AddDbContext<PizzaStoreContext>(options =>
options.UseSqlite("Data Source=pizza.db"));
......
......@@ -11,7 +11,7 @@ namespace BlazingPizza.Client
public static async Task Main(string[] args)
{
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("app");
builder.RootComponents.Add<App>("#app");
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
......
......@@ -11,9 +11,9 @@
<title>Blazing Pizza</title>
</head>
<body>
<app>
<div id="app">
<div class="loading-bar"></div>
</app>
</div>
<div id="blazor-error-ui">
An unhandled error has occurred.
......
......@@ -19,8 +19,8 @@ namespace BlazingPizza.Server
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc()
.AddNewtonsoftJson();
services.AddControllersWithViews();
services.AddRazorPages();
services.AddDbContext<PizzaStoreContext>(options =>
options.UseSqlite("Data Source=pizza.db"));
......
......@@ -11,7 +11,7 @@ namespace BlazingPizza.Client
public static async Task Main(string[] args)
{
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("app");
builder.RootComponents.Add<App>("#app");
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
......
......@@ -11,9 +11,9 @@
<title>Blazing Pizza</title>
</head>
<body>
<app>
<div id="app">
<div class="loading-bar"></div>
</app>
</div>
<div id="blazor-error-ui">
An unhandled error has occurred.
......
......@@ -19,8 +19,8 @@ namespace BlazingPizza.Server
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc()
.AddNewtonsoftJson();
services.AddControllersWithViews();
services.AddRazorPages();
services.AddDbContext<PizzaStoreContext>(options =>
options.UseSqlite("Data Source=pizza.db"));
......
......@@ -11,7 +11,7 @@ namespace BlazingPizza.Client
public static async Task Main(string[] args)
{
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("app");
builder.RootComponents.Add<App>("#app");
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
builder.Services.AddScoped<OrderState>();
......
......@@ -11,9 +11,9 @@
<title>Blazing Pizza</title>
</head>
<body>
<app>
<div id="app">
<div class="loading-bar"></div>
</app>
</div>
<div id="blazor-error-ui">
An unhandled error has occurred.
......
......@@ -19,8 +19,8 @@ namespace BlazingPizza.Server
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc()
.AddNewtonsoftJson();
services.AddControllersWithViews();
services.AddRazorPages();
services.AddDbContext<PizzaStoreContext>(options =>
options.UseSqlite("Data Source=pizza.db"));
......
......@@ -11,7 +11,7 @@ namespace BlazingPizza.Client
public static async Task Main(string[] args)
{
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("app");
builder.RootComponents.Add<App>("#app");
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
builder.Services.AddScoped<OrderState>();
......
......@@ -11,9 +11,9 @@
<title>Blazing Pizza</title>
</head>
<body>
<app>
<div id="app">
<div class="loading-bar"></div>
</app>
</div>
<div id="blazor-error-ui">
An unhandled error has occurred.
......
......@@ -19,8 +19,8 @@ namespace BlazingPizza.Server
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc()
.AddNewtonsoftJson();
services.AddControllersWithViews();
services.AddRazorPages();
services.AddDbContext<PizzaStoreContext>(options =>
options.UseSqlite("Data Source=pizza.db"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment