public MyMessagesController( IUserMessagesService userMessagesService, IOptions <CampaignsApiOptions> campaignsApiOptions ) { UserMessagesService = userMessagesService ?? throw new ArgumentNullException(nameof(userMessagesService)); CampaignsApiOptions = campaignsApiOptions?.Value ?? throw new ArgumentNullException(nameof(campaignsApiOptions)); }
public NavbarViewComponent( IOrdersService ordersService, IPartnersService partnersService, IUserMessagesService userMessagesService, ITimeSpanService timeSpanService) { this.ordersService = ordersService; this.partnersService = partnersService; this.userMessagesService = userMessagesService; this.timeSpanService = timeSpanService; }
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; }
public UserMessagesController(IUserMessagesService userMessagesService) { this.userMessagesService = userMessagesService; }