示例#1
0
 public MyMessagesController(
     IUserMessagesService userMessagesService,
     IOptions <CampaignsApiOptions> campaignsApiOptions
     )
 {
     UserMessagesService = userMessagesService ?? throw new ArgumentNullException(nameof(userMessagesService));
     CampaignsApiOptions = campaignsApiOptions?.Value ?? throw new ArgumentNullException(nameof(campaignsApiOptions));
 }
示例#2
0
 public NavbarViewComponent(
     IOrdersService ordersService,
     IPartnersService partnersService,
     IUserMessagesService userMessagesService,
     ITimeSpanService timeSpanService)
 {
     this.ordersService       = ordersService;
     this.partnersService     = partnersService;
     this.userMessagesService = userMessagesService;
     this.timeSpanService     = timeSpanService;
 }
示例#3
0
 public HomeController(
     IUserMessagesService userMessagesService,
     IOrdersService ordersService,
     IProductsService productsService,
     IHomePageSlidesService homePageSlidesService,
     IStringService stringService,
     IDistributedCache cache)
 {
     this.userMessagesService   = userMessagesService;
     this.ordersService         = ordersService;
     this.productsService       = productsService;
     this.homePageSlidesService = homePageSlidesService;
     this.stringService         = stringService;
     this.distributedCache      = cache;
 }
示例#4
0
 public UserMessagesController(IUserMessagesService userMessagesService)
 {
     this.userMessagesService = userMessagesService;
 }