FruitBankHybridApp/FruitBankHybrid.Web.Client/Program.cs

12 lines
432 B
C#

using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using FruitBankHybrid.Shared.Services;
using FruitBankHybrid.Web.Client.Services;
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();