Beispiel #1
0
        public static IEnumerable <ContainerRegister> Register()
        {
            yield return(ContainerRegister.Service <ValidateAccountService, IValidateAccountService>());

            yield return(ContainerRegister.Service <ApplicationDbContext, DbContext>());

            yield return(ContainerRegister.UnitOfWork <AuthorizeUnitOfWork>());
        }
Beispiel #2
0
        public static IEnumerable <ContainerRegister> Register()
        {
            yield return(ContainerRegister.Service <UsersCoreService, IUsersCoreService>());

            yield return(ContainerRegister.UnitOfWork <AccountUnitOfWork>());

            yield return(ContainerRegister.Service <UserValidator, IValidator <IUser> >());
        }
Beispiel #3
0
 public static IEnumerable <ContainerRegister> ResolveIndexer()
 {
     yield return(ContainerRegister.Service <SearchIndexer, ISearchIndexer>(nameof(SearchIndexer)));
 }