FruitBankHybridApp/FruitBankHybrid.Web.Client/Program.cs

13 lines
507 B
C#

using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using FruitBankHybrid.Shared.Services;
using FruitBankHybrid.Web.Client.Services;
using SignalRService = FruitBankHybrid.Web.Client.Services.SignalRService;
var builder = WebAssemblyHostBuilder.CreateDefault(args);
// Add device-specific services used by the FruitBankHybrid.Shared project
builder.Services.AddSingleton<IFormFactor, FormFactor>();
builder.Services.AddScoped<ISignalRService, SignalRService>();
await builder.Build().RunAsync();