Created
November 18, 2016 01:49
-
-
Save dcomartin/a5fc2d0d83a06bbcbbda81cdaffce069 to your computer and use it in GitHub Desktop.
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
var container = new Container(); | |
container.Configure(cfg => | |
{ | |
cfg.Scan(scanner => | |
{ | |
scanner.WithDefaultConventions(); | |
scanner.TheCallingAssembly(); | |
scanner.ConnectImplementationsToTypesClosing(typeof(IPostRequestHandler<,>)); | |
}); | |
cfg.For(typeof(ICancellableAsyncRequestHandler<,>)).DecorateAllWith(typeof(Pipeline<,>)); | |
cfg.Populate(services); | |
}); | |
return container.GetInstance<IServiceProvider>(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment