2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-04-05 17:39:39 -04:00
pulsar/Pulsar/Program.cs

18 lines
474 B
C#

using Lamar.Microsoft.DependencyInjection;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddLamar();
builder.Services.AddControllers();
builder.Services.AddSignalR();
builder.Services.AddDbContext<PulsarContext>();
builder.Services.Configure<PulsarConfiguration>(builder.Configuration.GetSection(nameof(Pulsar)));
var app = builder.Build();
await app.RunAsync();
public class PulsarConfiguration
{
public string JournalDirectory { get; set; }
}