Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (18 sloc) 589 Bytes
using Autofac;
using System.Web;
using System.Web.Http;
namespace RemoteControlBotSample
{
public class WebApiApplication : HttpApplication
{
protected void Application_Start()
{
ContainerBuilder containerBuilder = new ContainerBuilder();
containerBuilder.RegisterModule<GlobalMessageHandlerModule>();
#pragma warning disable 0618
containerBuilder.Update(Microsoft.Bot.Builder.Dialogs.Conversation.Container);
#pragma warning restore 0618
GlobalConfiguration.Configure(WebApiConfig.Register);
}
}
}