コード例 #1
0
 public async static Task InitializeApplicationDependencies(IServiceCollection services)
 {
     await Task.Run(async() =>
     {
         AppDependencySetup.ConfigureDependencies(services);
         await InitializeDatabase();
     });
 }
コード例 #2
0
        public ResolveType Resolve <ResolveType>(string name) where ResolveType : class
        {
            var service = AppDependencySetup.Resolve <ResolveType>(name);

            return(service);
        }
コード例 #3
0
 public ResolveType Resolve <ResolveType>() where ResolveType : class
 {
     return(AppDependencySetup.Resolve <ResolveType>());
 }
コード例 #4
0
 public object Resolve(Type resolveType)
 {
     return(AppDependencySetup.Resolve(resolveType));
 }
コード例 #5
0
 public IRegisterOptions Register <RegisterType>(RegisterType instance, string name) where RegisterType : class
 {
     AppDependencySetup.Register(instance, name);
     return(new CustomRegisterOptions());
 }