Skip to content

Commit

Permalink
Update Configure.AppHost.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Feb 6, 2024
1 parent 5886e1a commit ba06f1f
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions MyApp/Configure.AppHost.cs
Original file line number Diff line number Diff line change
@@ -1,29 +1,17 @@
using Funq;
using MyApp.Data;
using MyApp.ServiceInterface;
using ServiceStack;
using ServiceStack.Auth;
using Microsoft.EntityFrameworkCore;
using Microsoft.AspNetCore.Identity;
using MyApp.ServiceModel;
using ServiceStack.Web;

[assembly: HostingStartup(typeof(MyApp.AppHost))]
[assembly: HostingStartup(typeof(MyApp.AppHost))]

namespace MyApp;

public class AppHost : AppHostBase, IHostingStartup
public class AppHost() : AppHostBase("MyApp"), IHostingStartup
{
public void Configure(IWebHostBuilder builder) => builder
.ConfigureServices((context, services) =>
{
// Configure ASP.NET Core IOC Dependencies
});

public AppHost() : base("MyApp", typeof(MyServices).Assembly) { }

// Configure your AppHost with the necessary configuration and dependencies your App needs
public override void Configure(Container container)
public override void Configure()
{
SetConfig(new HostConfig {
});
Expand Down

0 comments on commit ba06f1f

Please sign in to comment.