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


C# IMessageSender类代码示例

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


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


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