Created
September 28, 2018 02:02
-
-
Save bayological/08410ce294a32d91913a263503d7001d to your computer and use it in GitHub Desktop.
Type registration with Scurtor
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
public static void Run(IServiceCollection services) | |
{ | |
services.Scan(scan => scan | |
.FromAssemblyOf<ICat>() | |
.AddClasses() | |
.AsImplementedInterfaces() | |
.WithTransientLifetime()); | |
services.AddSingleton<IApplication, Application>(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment