Last active
October 9, 2015 13:51
-
-
Save sshibani/0000a816f3d9401a5868 to your computer and use it in GitHub Desktop.
Sample Startup.cs for DD4T.RestService.WebApi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Owin; | |
using Owin; | |
using DD4T.RestService.WebApi; | |
using Autofac; | |
using Autofac.Integration.WebApi; | |
[assembly: OwinStartup(typeof(MyDD4T.RestService.Startup))] | |
namespace MyDD4T.RestService | |
{ | |
public class Startup | |
{ | |
public void Configuration(IAppBuilder app) | |
{ | |
log4net.Config.XmlConfigurator.Configure(); | |
var builder = new ContainerBuilder(); | |
builder.RegisterApiControllers(typeof(Startup).Assembly); | |
app.UseDD4TWebApi(builder); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment