Exemple #1
0
 public void Dispose()
 {
     _serviceProvider = null;
     _resolver        = null;
 }
Exemple #2
0
 /// <summary>
 /// 初始化
 /// </summary>
 /// <example>
 /// public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
 ///{
 ///    AppDependencyResolver.Init(app.ApplicationServices);
 ///    //all other code
 ///}
 /// </example>
 /// <param name="services"></param>
 public static void Init(IServiceProvider services)
 {
     _resolver = new AppDependencyResolver(services);
 }