public static IEnumerable <ContainerRegister> Register() { yield return(ContainerRegister.Service <ValidateAccountService, IValidateAccountService>()); yield return(ContainerRegister.Service <ApplicationDbContext, DbContext>()); yield return(ContainerRegister.UnitOfWork <AuthorizeUnitOfWork>()); }
public static IEnumerable <ContainerRegister> Register() { yield return(ContainerRegister.Service <UsersCoreService, IUsersCoreService>()); yield return(ContainerRegister.UnitOfWork <AccountUnitOfWork>()); yield return(ContainerRegister.Service <UserValidator, IValidator <IUser> >()); }
public static IEnumerable <ContainerRegister> ResolveIndexer() { yield return(ContainerRegister.Service <SearchIndexer, ISearchIndexer>(nameof(SearchIndexer))); }