本文整理汇总了C#中IEventPublisher类的典型用法代码示例。如果您正苦于以下问题:C# IEventPublisher类的具体用法?C# IEventPublisher怎么用?C# IEventPublisher使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IEventPublisher类属于命名空间,在下文中一共展示了IEventPublisher类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DiscountService
public DiscountService(
IPromoUtilities promoUtilities,
PromoSettings promoSettings,
ICacheManager cacheManager,
IRepository<Discount> discountRepository,
IRepository<DiscountRequirement> discountRequirementRepository,
IRepository<DiscountUsageHistory> discountUsageHistoryRepository,
IStoreContext storeContext,
IGenericAttributeService genericAttributeService,
IPluginFinder pluginFinder,
IEventPublisher eventPublisher) :
base(
cacheManager,
discountRepository,
discountRequirementRepository,
discountUsageHistoryRepository,
storeContext,
genericAttributeService,
pluginFinder,
eventPublisher)
{
this._promoUtilities = promoUtilities;
this._promoSettings = promoSettings;
this._discountRepository = discountRepository;
this._discountUsageHistoryRepository = discountUsageHistoryRepository;
this._cacheManager = cacheManager;
this._eventPublisher = eventPublisher;
}
示例2: ApplicationService
public ApplicationService(IRepository<Application> applicationRepository,
IEventPublisher eventPublisher, ICacheManager cacheManager)
{
_applicationRepository = applicationRepository;
_eventPublisher = eventPublisher;
_cacheManager = cacheManager;
}
示例3: ShoppingCartService
/// <summary>
/// Ctor
/// </summary>
/// <param name="sciRepository">Shopping cart repository</param>
/// <param name="workContext">Work context</param>
/// <param name="currencyService">Currency service</param>
/// <param name="productService">Product settings</param>
/// <param name="localizationService">Localization service</param>
/// <param name="productAttributeParser">Product attribute parser</param>
/// <param name="checkoutAttributeService">Checkout attribute service</param>
/// <param name="checkoutAttributeParser">Checkout attribute parser</param>
/// <param name="priceFormatter">Price formatter</param>
/// <param name="customerService">Customer service</param>
/// <param name="shoppingCartSettings">Shopping cart settings</param>
/// <param name="eventPublisher">Event publisher</param>
/// <param name="permissionService">Permission service</param>
/// <param name="aclService">ACL service</param>
public ShoppingCartService(IRepository<ShoppingCartItem> sciRepository,
IWorkContext workContext, ICurrencyService currencyService,
IProductService productService, ILocalizationService localizationService,
IProductAttributeParser productAttributeParser,
ICheckoutAttributeService checkoutAttributeService,
ICheckoutAttributeParser checkoutAttributeParser,
IPriceFormatter priceFormatter,
ICustomerService customerService,
ShoppingCartSettings shoppingCartSettings,
IEventPublisher eventPublisher,
IPermissionService permissionService,
IAclService aclService)
{
this._sciRepository = sciRepository;
this._workContext = workContext;
this._currencyService = currencyService;
this._productService = productService;
this._localizationService = localizationService;
this._productAttributeParser = productAttributeParser;
this._checkoutAttributeService = checkoutAttributeService;
this._checkoutAttributeParser = checkoutAttributeParser;
this._priceFormatter = priceFormatter;
this._customerService = customerService;
this._shoppingCartSettings = shoppingCartSettings;
this._eventPublisher = eventPublisher;
this._permissionService = permissionService;
this._aclService = aclService;
}
示例4: DemoService
public DemoService(IRepository<DemoEntity> demoRepository,
IEventPublisher eventPublisher,IMapping mapping)
{
_demoRepository = demoRepository;
_eventPublisher = eventPublisher;
_mapping = mapping;
}
示例5: ContactUsService
public ContactUsService(
IRepository<ContactUs> contactusRepository,
IEventPublisher eventPublisher)
{
this._contactusRepository = contactusRepository;
this._eventPublisher = eventPublisher;
}
示例6: CategoryTemplateService
/// <summary>
/// Ctor
/// </summary>
/// <param name="cacheManager">Cache manager</param>
/// <param name="categoryTemplateRepository">Category template repository</param>
/// <param name="eventPublisher">Event published</param>
public CategoryTemplateService(ICacheManager cacheManager,
IRepository<CategoryTemplate> categoryTemplateRepository, IEventPublisher eventPublisher)
{
_cacheManager = cacheManager;
_categoryTemplateRepository = categoryTemplateRepository;
_eventPublisher = eventPublisher;
}
示例7: HomeInstallationQuoteController
public HomeInstallationQuoteController(
IWorkContext workContext,
ISettingService settingService,
IGenericAttributeService genericAttributeService,
ILocalizationService localizationService,
IMessageTokenProvider messageTokenProvider,
IEmailAccountService emailAccountService,
IEventPublisher eventPublisher,
IMessageTemplateService messageTemplateService,
ITokenizer tokenizer,
IQueuedEmailService queuedEmailService,
IProductService productService,
CaptchaSettings captchaSettings,
EmailAccountSettings emailAccountSettings)
{
_workContext = workContext;
_settingService = settingService;
_genericAttributeService = genericAttributeService;
_localizationService = localizationService;
_messageTokenProvider = messageTokenProvider;
_emailAccountService = emailAccountService;
_eventPublisher = eventPublisher;
_messageTemplateService = messageTemplateService;
_tokenizer = tokenizer;
_queuedEmailService = queuedEmailService;
_productService = productService;
_captchaSettings = captchaSettings;
_emailAccountSettings = emailAccountSettings;
}
示例8: WorkflowMessageService
public WorkflowMessageService(IMessageTemplateService messageTemplateService,
IQueuedEmailService queuedEmailService,
ILanguageService languageService,
ITokenizer tokenizer,
IEmailAccountService emailAccountService,
IMessageTokenProvider messageTokenProvider,
IStoreService storeService,
IStoreContext storeContext,
EmailAccountSettings emailAccountSettings,
IEventPublisher eventPublisher,
ISMSSender smsSender,
SMSSettings smsSettings)
{
this._messageTemplateService = messageTemplateService;
this._queuedEmailService = queuedEmailService;
this._languageService = languageService;
this._tokenizer = tokenizer;
this._emailAccountService = emailAccountService;
this._messageTokenProvider = messageTokenProvider;
this._storeService = storeService;
this._storeContext = storeContext;
this._emailAccountSettings = emailAccountSettings;
this._eventPublisher = eventPublisher;
this._smsSender = smsSender;
this._smsSettings = smsSettings;
}
示例9: ShippingService
/// <summary>
/// Ctor
/// </summary>
/// <param name="cacheManager">Cache manager</param>
/// <param name="shippingMethodRepository">Shipping method repository</param>
/// <param name="logger">Logger</param>
/// <param name="productAttributeParser">Product attribute parser</param>
/// <param name="productService">Product service</param>
/// <param name="checkoutAttributeParser">Checkout attribute parser</param>
/// <param name="genericAttributeService">Generic attribute service</param>
/// <param name="localizationService">Localization service</param>
/// <param name="shippingSettings">Shipping settings</param>
/// <param name="pluginFinder">Plugin finder</param>
/// <param name="eventPublisher">Event published</param>
/// <param name="shoppingCartSettings">Shopping cart settings</param>
/// <param name="settingService">Setting service</param>
public ShippingService(ICacheManager cacheManager,
IRepository<ShippingMethod> shippingMethodRepository,
ILogger logger,
IProductAttributeParser productAttributeParser,
IProductService productService,
ICheckoutAttributeParser checkoutAttributeParser,
IGenericAttributeService genericAttributeService,
ILocalizationService localizationService,
ShippingSettings shippingSettings,
IPluginFinder pluginFinder,
IEventPublisher eventPublisher,
ShoppingCartSettings shoppingCartSettings,
ISettingService settingService,
IProviderManager providerManager)
{
this._cacheManager = cacheManager;
this._shippingMethodRepository = shippingMethodRepository;
this._logger = logger;
this._productAttributeParser = productAttributeParser;
this._productService = productService;
this._checkoutAttributeParser = checkoutAttributeParser;
this._genericAttributeService = genericAttributeService;
this._localizationService = localizationService;
this._shippingSettings = shippingSettings;
this._pluginFinder = pluginFinder;
this._eventPublisher = eventPublisher;
this._shoppingCartSettings = shoppingCartSettings;
this._settingService = settingService;
this._providerManager = providerManager;
}
示例10: Server
public Server(IEventPublisher eventPublisher, IDomainModelStateManager stateManager, ICommandProcessorFactory commandProcessorFactory, IUnitOfWorkFactory unitOfWorkFactory)
{
_eventPublisher = eventPublisher;
_stateManager = stateManager;
_commandProcessorFactory = commandProcessorFactory;
_unitOfWorkFactory = unitOfWorkFactory;
}
示例11: ForumService
/// <summary>
/// Ctor
/// </summary>
/// <param name="cacheManager">Cache manager</param>
/// <param name="forumGroupRepository">Forum group repository</param>
/// <param name="forumRepository">Forum repository</param>
/// <param name="forumTopicRepository">Forum topic repository</param>
/// <param name="forumPostRepository">Forum post repository</param>
/// <param name="forumPrivateMessageRepository">Private message repository</param>
/// <param name="forumSubscriptionRepository">Forum subscription repository</param>
/// <param name="forumSettings">Forum settings</param>
/// <param name="customerRepository">Customer repository</param>
/// <param name="genericAttributeService">Generic attribute service</param>
/// <param name="customerService">Customer service</param>
/// <param name="workContext">Work context</param>
/// <param name="workflowMessageService">Workflow message service</param>
/// <param name="eventPublisher">Event published</param>
public ForumService(ICacheManager cacheManager,
IRepository<ForumGroup> forumGroupRepository,
IRepository<Forum> forumRepository,
IRepository<ForumTopic> forumTopicRepository,
IRepository<ForumPost> forumPostRepository,
IRepository<PrivateMessage> forumPrivateMessageRepository,
IRepository<ForumSubscription> forumSubscriptionRepository,
ForumSettings forumSettings,
IRepository<Customer> customerRepository,
IGenericAttributeService genericAttributeService,
ICustomerService customerService,
IWorkContext workContext,
IWorkflowMessageService workflowMessageService,
IEventPublisher eventPublisher
)
{
this._cacheManager = cacheManager;
this._forumGroupRepository = forumGroupRepository;
this._forumRepository = forumRepository;
this._forumTopicRepository = forumTopicRepository;
this._forumPostRepository = forumPostRepository;
this._forumPrivateMessageRepository = forumPrivateMessageRepository;
this._forumSubscriptionRepository = forumSubscriptionRepository;
this._forumSettings = forumSettings;
this._customerRepository = customerRepository;
this._genericAttributeService = genericAttributeService;
this._customerService = customerService;
this._workContext = workContext;
this._workflowMessageService = workflowMessageService;
_eventPublisher = eventPublisher;
}
示例12: EmailAccountService
/// <summary>
/// Ctor
/// </summary>
/// <param name="emailAccountRepository">Email account repository</param>
/// <param name="emailAccountSettings"></param>
/// <param name="eventPublisher">Event published</param>
public EmailAccountService(IRepository<EmailAccount> emailAccountRepository,
EmailAccountSettings emailAccountSettings, IEventPublisher eventPublisher)
{
_emailAccountRepository = emailAccountRepository;
_emailAccountSettings = emailAccountSettings;
_eventPublisher = eventPublisher;
}
示例13: ShoppingCartServiceImpl
public ShoppingCartServiceImpl(Func<ICartRepository> repositoryFactory, IEventPublisher<CartChangeEvent> eventPublisher, IItemService productService, IDynamicPropertyService dynamicPropertyService)
{
_repositoryFactory = repositoryFactory;
_eventPublisher = eventPublisher;
_productService = productService;
_dynamicPropertyService = dynamicPropertyService;
}
示例14: TaskService
/// <summary>
/// Ctor
/// </summary>
/// <param name="cacheManager">Cache manager</param>
/// <param name="eventPublisher">Event publisher</param>
/// <param name="itemRepository">item repository</param>
public TaskService(ICacheManager cacheManager, IRepository<ScheduleTask, Guid> repository, IEventPublisher eventPublisher,IActivityLogService activityLogService)
{
this._cacheManager = cacheManager;
this._repository = repository;
this._eventPublisher = eventPublisher;
_activityLogService = activityLogService;
}
示例15: ContinuousConsoleRunner
internal ContinuousConsoleRunner(
ILogger logger,
IEventSubscriptionManager eventSubscriptionManager,
IEventPublisher eventPublisher ,
string xapPath,
ClientTestRunConfiguration clientTestRunConfiguration,
IWebServer webServer,
IWebBrowser webBrowser)
{
_xapPath = xapPath;
_webServer = webServer;
_xapFileBuildChangedMonitor = new XapFileBuildChangedMonitor(eventPublisher, _xapPath);
_continuousRunnerThread = new Thread(() =>
{
using (var runner = new ContinuousTestRunner(logger, eventSubscriptionManager, eventPublisher, webBrowser, clientTestRunConfiguration, _xapPath))
{
string line;
while (!(line = System.Console.ReadLine()).Equals("exit", StringComparison.OrdinalIgnoreCase))
{
runner.ForceFilteredTest(line);
}
}
});
}