nservicebus

Setting RavenDB ApiKey in NServiceBus 3.2.3

淺唱寂寞╮ 提交于 2019-12-24 20:40:24
问题 I am trying to set the RavenDB DocumentStore.ApiKey in NServiceBus 3.2.3. According to this thread, this is not able to be read directly from the connection string by the version of RavenDB used in NSB 3.2.3. The DocumentStore instance in NSB is registered as an IDocumentStore , which means I cannot use a custom action like this as IDocumentStore does not expose ApiKey : Configure.With() .DefaultBuilder() .RavenPersistence() .RunCustomAction(() => Configure.Instance.Configurer

NService Bus : “Unable to set the value for key: ScaleOut.UseSingleBrokerQueue.”

断了今生、忘了曾经 提交于 2019-12-24 13:14:45
问题 I got this type of error when using nservicebus.structuremap. This is my code. EndPointConfig.cs namespace NSBus.Server { using NServiceBus; /* This class configures this endpoint as a Server. More information about how to configure the NServiceBus host can be found here: http://particular.net/articles/the-nservicebus-host */ public class EndpointConfig : IConfigureThisEndpoint, AsA_Server, UsingTransport<Msmq>, IWantCustomInitialization { public static IBus Bus { get; private set; } public

Can a subscriber also publish/send message in NServiceBus?

倾然丶 夕夏残阳落幕 提交于 2019-12-24 03:49:09
问题 Is the communication bi-directional in NServiceBus? a subscriber can also publish/send message? 回答1: NServiceBus does indeed support bi-directional communication, a subscriber can publish messages as well. Configure it as a publisher as per-usual, write handlers for events coming from other publishers, configure the messages in the UnicastBusConfig, and you're done. 来源: https://stackoverflow.com/questions/2437423/can-a-subscriber-also-publish-send-message-in-nservicebus

NServiceBus - NServiceBus.Host as publisher and WPF app as subscriber. How To?

家住魔仙堡 提交于 2019-12-24 02:55:34
问题 I'm trying to use NServiceBus to send messages from a console process (very similar to PubSub example included in the library which starts NServiceBus.Host.exe) to my WPF application. This what I did. In WPF App.xaml class I have defined public static IBus Bus; same class, in application_startup handler: Bus = Configure.With().DefaultBuilder().BinarySerializer() .MsmqTransport().IsTransactional(true).PurgeOnStartup(false) .UnicastBus().ImpersonateSender(false).LoadMessageHandlers() .CreateBus

When installing a Generic Host as a service in NServiceBus, how do I provide valid credentials?

a 夏天 提交于 2019-12-23 21:06:01
问题 Imagine I create a .bat file in the following directory: \trunk\Samples\PubSub\ @ECHO OFF ECHO installing Subscriber 1 Subscriber1\bin\Debug\NServiceBus.Host.exe /install pause ECHO installing Subscriber 2 Subscriber2\bin\Debug\NServiceBus.Host.exe /install pause ECHO starting Subscriber services net start Subscriber1.EndPointConfig_v1.0.0.0 net start Subscriber2.EndPointConfig_v1.0.0.0 pause I get prompted for a username and password, but using my own credentials I get an exception as

NServiceBus: System.Transactions.TransactionException: The partner transaction manager has disabled its support for remote/network transactions

我只是一个虾纸丫 提交于 2019-12-23 20:08:36
问题 I am getting this exception on my subscriber when I try to save a record to a database from within my Handle(T value) method in my IHandleMessages implementation. Does anyone know why that would happen? I think I remember that NServiceBus uses distributed transactions to make the handling of messages transactional, but I have no idea why it doesn't just "work" after running the "RunMeFirst.bat" file on both machines. Any ideas? 回答1: Found the answer. It looks like I needed to enable the

NServiceBus - Type was not registered in the serializer - Fix?

匆匆过客 提交于 2019-12-23 13:00:04
问题 We are using NServiceBus in a web application and each time we deploy our code to production, we have to delete the Temporary Files in the folder: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files We are following the instructions here to fix this: http://www.nservicebus.com/faq/TypeNotRegisteredInSerializer.aspx I was wondering if there is a more permanent fix to this? I feel like I am fighting with this every time I deploy new code. What is the best way to handle this

A resource manager with the same identifier is already registered with the specified transaction coordinator

混江龙づ霸主 提交于 2019-12-23 06:15:22
问题 I am consistently getting ResourceManager error. I use below code: public static IDocumentStore Initialize() { const string id = "2a5434cf-56f6-4b33-9661-5b6cc53bd9a5"; _instance = new DocumentStore { Url = "http://localhost:8085", DefaultDatabase = "Testing", ResourceManagerId = new Guid(id) }; _instance.Initialize(); return _instance; } Here's the call stack: 2015-06-04 15:39:08.366 INFO NServiceBus.Unicast.Transport.TransportReceiver Failed to process message System.Runtime.InteropServices

NServiceBus Delayed Message Processing

馋奶兔 提交于 2019-12-23 02:51:05
问题 I have an NServiceBus application for which a given message may not be processed due to some external event not having taken place. Because this other event is not an NSB event I can't implement sagas properly. However, rather than just re-queuing the message (which would cause a loop until that external event has occurred), I'm wrapping the message in another message (DelayMessage) and queuing that instead. The DelayMessage is picked up by a different service and placed in a database until

Bridge NSB over WCF

て烟熏妆下的殇ゞ 提交于 2019-12-22 10:55:32
问题 I am trying to publish a WCF service that sends to a NSB host. I have looked at the WebServiceBridge example in the NSB samples but cannot figure out how to use the NServiceBus.WcfService class in the WCF counterpart. I have found out that I can have my service interface inherit one or more IWcfService < TRequest, TResponse >, but since the service class cannot inherit multiple base classes (WcfService), is it possible to have one service implementation serve several message types? 回答1: