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 c986435 commit cff8da8
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions MyApp/Configure.AppHost.cs
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
using Funq;
using ServiceStack;
using MyApp.ServiceInterface;
using ServiceStack;

[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 cff8da8

Please sign in to comment.