Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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