public async static Task InitializeApplicationDependencies(IServiceCollection services) { await Task.Run(async() => { AppDependencySetup.ConfigureDependencies(services); await InitializeDatabase(); }); }
public ResolveType Resolve <ResolveType>(string name) where ResolveType : class { var service = AppDependencySetup.Resolve <ResolveType>(name); return(service); }
public ResolveType Resolve <ResolveType>() where ResolveType : class { return(AppDependencySetup.Resolve <ResolveType>()); }
public object Resolve(Type resolveType) { return(AppDependencySetup.Resolve(resolveType)); }
public IRegisterOptions Register <RegisterType>(RegisterType instance, string name) where RegisterType : class { AppDependencySetup.Register(instance, name); return(new CustomRegisterOptions()); }