Beispiel #1
0
    public static async Task Main()
    {
        var builder = HostFactory.CreateWebApiApplicationBuilder(typeof(CharactersController).Assembly);

        builder.Services.RegisterProfilesApi();

        var app = builder.Build();
        await app.RunAsync();
    }
Beispiel #2
0
    public static async Task Main()
    {
        var builder = HostFactory.CreateWebApiApplicationBuilder(typeof(LocationsController).Assembly);

        builder.Services.RegisterDataApi();

        await builder.Build()
        .RunAsync();
    }