/// <summary>
 /// Initializes a new instance of the <see cref="UserProviderService"/> class.
 /// </summary>
 /// <param name="providerRepository"></param>
 /// <param name="mapper"></param>
 /// <param name="log"></param>
 /// <param name="cache"></param>
 public ProviderService(IProviderRepository providerRepository, IUserProviderService userProviderService,
                        IMapper mapper, ILog log, ICacheService cache) : base(providerRepository, log, mapper)
 {
     this.providerRepository = providerRepository;
     this.mapper             = mapper;
     this.cache = cache;
     this.userProviderService = userProviderService;
 }
Пример #2
0
 public UserController(
     IUserService userService,
     IUserProviderService userProvider,
     ILogger <UserController> logger)
 {
     this.userService  = userService;
     this.userProvider = userProvider;
     this.logger       = logger;
 }
Пример #3
0
 public UserService(
     ApplicationDbContext context,
     UserManager <ApplicationUser> userManager,
     IUserProviderService userProviderService
     )
 {
     _context             = context;
     _userManager         = userManager;
     _userProviderService = userProviderService;
 }
Пример #4
0
 public MessageController(
     IMessageService messageService,
     IUserProviderService userProvider,
     IUserService userService,
     ILogger <MessageController> logger)
 {
     this.messageService = messageService;
     this.userProvider   = userProvider;
     this.userService    = userService;
     this.logger         = logger;
 }
Пример #5
0
        public UserService(
            IMongoDatabaseSettings settings,
            IUserProviderService userProvider,
            IMapper mapper,
            ICacheService cacheService)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            blockUserCollection = database.GetCollection <BlockUserInfo>(settings.BlockUsersCollectionName);
            this.mapper         = mapper;
            this.cacheService   = cacheService;
        }
 public CommentService(ApplicationDbContext context, IUserProviderService userProviderService)
 {
     _context             = context;
     _userProviderService = userProviderService;
 }
 public StatisticService(ApplicationDbContext context, IUserProviderService userProviderService)
 {
     _context             = context;
     _userProviderService = userProviderService;
 }
 /// <summary>
 ///
 /// </summary>
 public UserProviderController(IUserProviderService userProviderService, ILog log)
 {
     this.userProviderService = userProviderService;
     this.log = log;
 }
Пример #9
0
 public TreatmentHistoryService(ApplicationDbContext context, IUserProviderService userProviderService)
 {
     _context             = context;
     _userProviderService = userProviderService;
 }