示例#1
0
 public KudoController(IConfiguration configuration, IKudoService kudoService, IUserService userService, IKudoMapper kudoMapper)
 {
     this.kudoService = kudoService;
     this.userService = userService;
     this.kudoMapper  = kudoMapper;
     this.pageSize    = int.Parse(configuration["AppData:CardViewIndexPageSize"]);
 }
示例#2
0
 public IdleEmailService(IEmailConfiguration emailConfiguration, IKudoService kudoService)
 {
     _emailConfiguration = emailConfiguration;
     _kudoService        = kudoService;
     sslOptions          = SecureSocketOptions.Auto;
     messages            = new List <IMessageSummary>();
     cancel = new CancellationTokenSource();
     client = new ImapClient(new ProtocolLogger(Console.OpenStandardError()));
 }
示例#3
0
 public ReplaceKudoCommandHandler(IKudoService kudoService)
 {
     this.kudoService = kudoService;
 }
示例#4
0
 public DeleteKudoCommandHandler(IKudoService kudoService)
 {
     this.kudoService = kudoService;
 }
示例#5
0
 /// <summary>
 /// Inject Kudo service
 /// </summary>
 /// <returns></returns>
 public ReportController(IKudoService kudoService, IMapper mapper)
 {
     _kudoService = kudoService ?? throw new ArgumentNullException($"{nameof(kudoService)}");
     _mapper      = mapper ?? throw new ArgumentNullException($"{nameof(mapper)}");
 }
示例#6
0
 /// <summary>
 /// Inject Kudo service
 /// </summary>
 /// <returns></returns>
 public KudoController(IKudoService kudoService)
 {
     _kudoService = kudoService ?? throw new ArgumentNullException($"{nameof(kudoService)}");
 }
示例#7
0
 public ListUserKudosQueryHandler(IKudoService kudoService)
 {
     this.kudoService = kudoService;
 }
示例#8
0
 public KudoMapper(IKudoService kudoService, IKudoCategoryService kudoCategoryService, IUserService userService)
 {
     this.kudoService        = kudoService;
     this.kudoCategoyService = kudoCategoryService;
     this.userService        = userService;
 }
示例#9
0
 public ListTopUsersQueryHandler(IKudoService kudoService)
 {
     this.kudoService = kudoService;
 }
示例#10
0
 public HelpKudoQueryHandler(IKudoService kudoService)
 {
     this.kudoService = kudoService;
 }
示例#11
0
 public AccountController(IConfiguration configuration, IKudoService kudoService)
 {
     Configuration = configuration ?? throw new ArgumentNullException($"{nameof(configuration)}");
     _kudoService  = kudoService ?? throw new ArgumentNullException($"{nameof(kudoService)}");
 }
示例#12
0
 public HelpKudoCommandHandler(IKudoService kudoService)
 {
     this.kudoService = kudoService;
 }