skyrim-console-server/EmpathicQubit.ConsoleServer/ServerBootstrapper.cs

23 lines
651 B
C#
Raw Permalink Normal View History

2021-05-16 10:43:37 -04:00
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);
}
}
}