skyrim-console-server/EmpathicQubit.ConsoleServer/ServerBootstrapper.cs
2021-05-16 10:43:37 -04:00

23 lines
No EOL
651 B
C#

using System;
using System.Collections.Generic;
using Nancy;
using Nancy.TinyIoc;
namespace EmpathicQbt.ConsoleServer
{
public class ServerBootstrapper : DefaultNancyBootstrapper
{
private SkyrimInterop skyrimInterop;
public ServerBootstrapper(SkyrimInterop skyrimInterop)
{
this.skyrimInterop = skyrimInterop;
}
protected override void ConfigureRequestContainer(TinyIoCContainer container, NancyContext context)
{
base.ConfigureRequestContainer(container, context);
container.Register<SkyrimInterop>(skyrimInterop);
}
}
}