当前位置: 首页>>代码示例>>C#>>正文


C# IEventPublisher类代码示例

本文整理汇总了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;
        }
开发者ID:Qixol,项目名称:Qixol.Promo.Nop.Plugin,代码行数:29,代码来源:DiscountService.cs

示例2: ApplicationService

 public ApplicationService(IRepository<Application> applicationRepository,
     IEventPublisher eventPublisher, ICacheManager cacheManager)
 {
     _applicationRepository = applicationRepository;
     _eventPublisher = eventPublisher;
     _cacheManager = cacheManager;
 }
开发者ID:dotnetdreamer,项目名称:building-plugins-for-nopCommerce,代码行数:7,代码来源:ApplicationService.cs

示例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;
 }
开发者ID:nopmcs,项目名称:hcc_dev,代码行数:45,代码来源:ShoppingCartService.cs

示例4: DemoService

 public DemoService(IRepository<DemoEntity> demoRepository,
     IEventPublisher eventPublisher,IMapping mapping)
 {
     _demoRepository = demoRepository;
     _eventPublisher = eventPublisher;
     _mapping = mapping;
 }
开发者ID:TelWang,项目名称:WatermoonFramework,代码行数:7,代码来源:DemoService.cs

示例5: ContactUsService

 public ContactUsService(
     IRepository<ContactUs> contactusRepository,
     IEventPublisher eventPublisher)
 {
     this._contactusRepository = contactusRepository;
     this._eventPublisher = eventPublisher;
 }
开发者ID:powareverb,项目名称:grandnode,代码行数:7,代码来源:ContactUsService.cs

示例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;
 }
开发者ID:pquic,项目名称:qCommerce,代码行数:13,代码来源:CategoryTemplateService.cs

示例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;
        }
开发者ID:ventil8,项目名称:Nop.Plugin.Misc.FreeSample,代码行数:30,代码来源:HomeInstallationQuoteController.cs

示例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;
 }
开发者ID:minuzZ,项目名称:zelectroshop,代码行数:26,代码来源:WorkflowMessageService.cs

示例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;
        }
开发者ID:mandocaesar,项目名称:Mesinku,代码行数:46,代码来源:ShippingService.cs

示例10: Server

 public Server(IEventPublisher eventPublisher, IDomainModelStateManager stateManager, ICommandProcessorFactory commandProcessorFactory, IUnitOfWorkFactory unitOfWorkFactory)
 {
     _eventPublisher = eventPublisher;
     _stateManager = stateManager;
     _commandProcessorFactory = commandProcessorFactory;
     _unitOfWorkFactory = unitOfWorkFactory;
 }
开发者ID:DmitryNaumov,项目名称:TestCQRS,代码行数:7,代码来源:Server.cs

示例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;
 }
开发者ID:GloriousOnion,项目名称:SmartStoreNET,代码行数:48,代码来源:ForumService.cs

示例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;
 }
开发者ID:JeffersonNascimento,项目名称:SmartStoreNET,代码行数:13,代码来源:EmailAccountService.cs

示例13: ShoppingCartServiceImpl

        public ShoppingCartServiceImpl(Func<ICartRepository> repositoryFactory, IEventPublisher<CartChangeEvent> eventPublisher, IItemService productService, IDynamicPropertyService dynamicPropertyService)
		{
			_repositoryFactory = repositoryFactory;
			_eventPublisher = eventPublisher;
			_productService = productService;
            _dynamicPropertyService = dynamicPropertyService;
        }
开发者ID:adwardliu,项目名称:vc-community,代码行数:7,代码来源:ShoppingCartServiceImpl.cs

示例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;
 }
开发者ID:jmptrader,项目名称:WebFrameworkMVC,代码行数:13,代码来源:TaskService.cs

示例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);
                    }
                }
            });
        }
开发者ID:andywhitfield,项目名称:StatLight,代码行数:25,代码来源:ContinuousConsoleRunner.cs


注:本文中的IEventPublisher类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。