f0d60190cc
- For now uses a table but will replace with graphical media cards
20 lines
645 B
C#
20 lines
645 B
C#
using DeepDrftWeb.Client.Clients;
|
|
using DeepDrftWeb.Client.ViewModels;
|
|
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
|
using NetBlocks.Models;
|
|
|
|
namespace DeepDrftWeb.Client;
|
|
|
|
public static class Startup
|
|
{
|
|
public static void ConfigureDomainServices(IServiceCollection services, string baseAddress)
|
|
{
|
|
// HTTP Client for Server API
|
|
services.AddScoped(_ => new HttpClient { BaseAddress = new Uri(baseAddress) });
|
|
|
|
// Track Client
|
|
services.AddSingleton(new ClientConfig(baseAddress));
|
|
services.AddScoped<TrackClient>();
|
|
services.AddScoped<TrackGalleryViewModel>();
|
|
}
|
|
} |