• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IMessageSender类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IMessageSender的典型用法代码示例。如果您正苦于以下问题:C# IMessageSender类的具体用法?C# IMessageSender怎么用?C# IMessageSender使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IMessageSender类属于命名空间,在下文中一共展示了IMessageSender类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Program

 public Program(IMessageSender sender, IStoreEvents store, NuclearStorage storage)
 {
     this.sender = new SenderDecorator(sender);
     this.store = store;
     this.storage = storage;
     reader = new ConsoleReader();
 }
开发者ID:Jeff-Lewis,项目名称:Lokad-Cqrs-Extensions,代码行数:7,代码来源:Program.cs


示例2: InteractionProcessor

 public InteractionProcessor(IMessageSender sender, LifelineViewport viewport, NuclearStorage storage)
 {
     _sender = sender;
     _viewport = viewport;
     _storage = storage;
     CurrentStoryId = new StoryId(Guid.Empty);
 }
开发者ID:vishal-h,项目名称:Farleyfile,代码行数:7,代码来源:InteractionProcessor.cs


示例3: EventStoreBusPublisher

        public EventStoreBusPublisher(IMessageSender sender, IPendingEventsQueue queue)
        {
            this.sender = sender;
            this.queue = queue;

            this.enqueuedKeys = new BlockingCollection<string>();
        }
开发者ID:runerys,项目名称:cqrs-journey-code,代码行数:7,代码来源:EventStoreBusPublisher.cs


示例4: Invoke

 public void Invoke(IMessageSender sender, Message message)
 {
     foreach(var listener in Listeners)
     {
         listener.Value.Invoke(listener.Key, sender, message);
     }
 }
开发者ID:devast8a,项目名称:FlyingTuna,代码行数:7,代码来源:ComponentListener.cs


示例5: CreateBus

 public void CreateBus()
 {
     m_Sender = Substitute.For<IMessageSender>();
     m_Receiver = Substitute.For<IMessageReceiver>();
     m_Bus = new MessageBus(m_Sender,
                            m_Receiver);
 }
开发者ID:jystic,项目名称:Triangles-in-space,代码行数:7,代码来源:MessageBusTests.cs


示例6: MessageService

        static MessageService()
        {
            if (!MessagingEnabled) return;

            var unitySection = ConfigurationManager.GetSection("unity");
            if (unitySection == null)
            {
                log.Error("Required unity configuration for Message Sender");
                return;
            }

            try
            {
                var unity = new UnityContainer().LoadConfiguration(unityContainerName);
                if (unity.IsRegistered<IMessageSender>())
                {
                    sender = unity.Resolve<IMessageSender>();
                }
                else
                {
                    log.Error("Required unity configuration for Message Sender");
                }
            }
            catch(Exception ex)
            {
                log.Error("Error while resolving Message Sender: " + ex);
            }
        }
开发者ID:haoasqui,项目名称:ONLYOFFICE-Server,代码行数:28,代码来源:MessageService.cs


示例7: ProtocolChoicePromptHandler

 public ProtocolChoicePromptHandler(
     IMessageSender messageSender,
     ConsoleService consoleService)
 {
     this.messageSender = messageSender;
     this.consoleService = consoleService;
 }
开发者ID:sunnyc7,项目名称:PowerShellEditorServices,代码行数:7,代码来源:PromptHandlers.cs


示例8: TransportClient

 public TransportClient(IMessageSender messageSender, IMessageListener messageListener, ILogger logger, ISerializer<byte[]> serializer)
 {
     _messageSender = messageSender;
     _messageListener = messageListener;
     _logger = logger;
     _serializer = serializer;
     messageListener.Received += MessageListener_Received;
 }
开发者ID:yhhno,项目名称:Rpc,代码行数:8,代码来源:TransportClient.cs


示例9: HttpMessageWriter

 public HttpMessageWriter(IMessageSender messageSender, string baseUrl, OutputPort light, Watchdog[] resetWatchdogsOnSend)
 {
     _messageSender = messageSender;
     _baseUrl = baseUrl;
     _light = light;
     _resetWatchdogsOnSend = resetWatchdogsOnSend ?? new Watchdog[] {};
     StartThread();
 }
开发者ID:pwalke,项目名称:Pourcast,代码行数:8,代码来源:HttpMessageWriter.cs


示例10: TransportClient

 public TransportClient(IMessageSender messageSender, IMessageListener messageListener, ILogger logger, IServiceExecutor serviceExecutor)
 {
     _messageSender = messageSender;
     _messageListener = messageListener;
     _logger = logger;
     _serviceExecutor = serviceExecutor;
     messageListener.Received += MessageListener_Received;
 }
开发者ID:cjt908,项目名称:Rpc,代码行数:8,代码来源:TransportClient.cs


示例11: IncomingMessageProcessor

 public IncomingMessageProcessor(IRepository repository, IMessageSender messageSender,
                                 ICaseRepository caseRepository, IEmailSender emailSender)
 {
     _repository = repository;
     _messageSender = messageSender;
     _caseRepository = caseRepository;
     _emailSender = emailSender;
 }
开发者ID:AcklenAvenue,项目名称:AutomatedCaseworker,代码行数:8,代码来源:IncomingMessageProcessor.cs


示例12: GetSender

 public IMessageSender GetSender(IMessageSender[] senders)
 {
     lock (_sendersLock)
     {
         _currentSender = ++_currentSender % senders.Length;
         return senders[_currentSender];
     }
 }
开发者ID:Mecabot,项目名称:RedDog,代码行数:8,代码来源:RoundRobinMessageSenderPartitioner.cs


示例13: SendAll

		private void SendAll(IEnumerable messages, IMessageSender sender)
		{
			IEnumerator iterator = messages.GetEnumerator();
			while (iterator.MoveNext())
			{
				sender.Send(iterator.Current);
			}
		}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:8,代码来源:PrimitiveMessageTestCase.cs


示例14: EventBus

 public EventBus(IMessageSender messageSender,
     IRoutingKeyProvider routingKeyProvider,
     IMetadataProvider metadataProvider)
 {
     this.messageSender = messageSender;
     this.routingKeyProvider = routingKeyProvider;
     this.metadataProvider = metadataProvider;
     this.logger = LogManager.GetLogger("ThinkNet");
 }
开发者ID:y2ket,项目名称:thinknet,代码行数:9,代码来源:EventBus.cs


示例15: Given

        public override void Given()
        {
            messageSender = Moq.Mock<IMessageSender>();

            var messageMap = Moq.Mock<IMessageMap_v2>();
            messageMap.SetupGet(x => x.MessageType).Returns(typeof(ChangeOrderAttributes));

            viewModel = new MessageMapViewModel(messageSender, messageMap);
        }
开发者ID:Antares007,项目名称:InRetail,代码行数:9,代码来源:When_User_Clicks_Edit_Message_Button.cs


示例16: SearchIndexController

        /// <summary>
        /// Azures the index builder.
        /// </summary>
        /// <param name="repository">The repository.</param>
        /// <param name="searchProvider">The search provider.</param>
        /// <param name="messageSender">The message sender.</param>
        /// <param name="consumerFactory">The consumer factory.</param>
        /// <param name="observer">The observer.</param>
        /// <param name="queueReader">The queue reader.</param>
        /// <param name="indexBuilders">The index builders.</param>
        public SearchIndexController(IBuildSettingsRepository repository, ISearchProvider searchProvider, IMessageSender messageSender, IConsumerFactory consumerFactory, ISystemObserver observer, IQueueReader queueReader, ISearchIndexBuilder[] indexBuilders)
		{
			_repository = repository;
			_messageSender = messageSender;
			_observer = observer;
			_queueReader = queueReader;
			_consumerFactory = consumerFactory;
            _searchProvider = searchProvider;
            _indexBuilders = indexBuilders;
		}
开发者ID:Wdovin,项目名称:vc-community,代码行数:20,代码来源:SearchIndexController.cs


示例17: ProxyService

        public ProxyService(IHmrcDataManipulator dataManipulator, IConfigurationRepository configRepository, IMessageSender messageSender)
        {
            if (dataManipulator == null) throw new ArgumentNullException(nameof(dataManipulator));
            if (configRepository == null) throw new ArgumentNullException(nameof(configRepository));
            if (messageSender == null) throw new ArgumentNullException(nameof(messageSender));

            this.dataManipulator = dataManipulator;
            this.configRepository = configRepository;
            this.messageSender = messageSender;
        }
开发者ID:GeekInTheNorth,项目名称:HmrcDpsTestServer,代码行数:10,代码来源:ProxyService.cs


示例18: RegisterView

 public static void RegisterView(IMessageSender viewModel)
 {
     Type viewModelType = viewModel.GetType();
     if (_views.ContainsKey(viewModelType))
     {
         IMessageListener listener = Activator.CreateInstance(_views[viewModelType]) as IMessageListener;
         listener.Initialize(viewModel);
         _registeredViews.Add(listener);
     }
 }
开发者ID:fholiveira,项目名称:MusicLibraryComparer,代码行数:10,代码来源:ViewCatalog.cs


示例19: BusBootstrapper

 public BusBootstrapper(IAssemblyScanner assemblyScanner, ZmqTransportConfiguration zmqTransportConfiguration, IBusBootstrapperConfiguration bootstrapperConfiguration,
     IMessageSender messageSender, IPeerManager peerManager, ISubscriptionManager subscriptionManager, IPeerConfiguration peerConfiguration)
 {
     _assemblyScanner = assemblyScanner;
     _zmqTransportConfiguration = zmqTransportConfiguration;
     _bootstrapperConfiguration = bootstrapperConfiguration;
     _messageSender = messageSender;
     _peerManager = peerManager;
     _subscriptionManager = subscriptionManager;
     _peerConfiguration = peerConfiguration;
 }
开发者ID:jbouzaglou,项目名称:PetPigeonsESB,代码行数:11,代码来源:IBusBootstrapper.cs


示例20: CommandBus

 public CommandBus(IMessageSender messageSender,
     ICommandResultManager commandResultManager,
     IRoutingKeyProvider routingKeyProvider,
     IMetadataProvider metadataProvider)
 {
     this.messageSender = messageSender;
     this.commandResultManager = commandResultManager;
     this.routingKeyProvider = routingKeyProvider;
     this.metadataProvider = metadataProvider;
     this.logger = LogManager.GetLogger("ThinkNet");
 }
开发者ID:y2ket,项目名称:thinknet,代码行数:11,代码来源:CommandBus.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IMessageSerializer类代码示例发布时间:2022-05-24
下一篇:
C# IMessageReceiver类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap