nservicebus

Managing RavenDB IDocumentSession lifecycles with StructureMap for NServiceBus and MVC

拈花ヽ惹草 提交于 2019-12-22 06:49:28
问题 I am using NServiceBus v4.3, MVC4, RavenDB 2.5 and StructureMap 2.6.4 in our solution. I am having a similar issue under StructureMap to that described in this question's responses where I require different lifecycles for the MVC Controller and NServiceBus Handler use of RavenDB's IDocumentSession in my Web project. Specifically in my case what happens is that if I use the HybridHttpOrThreadLocalScoped (as the above answer suggests for Windsor) lifecycle the sessions are not properly disposed

RavenDB Errors with NServiceBus 4.0

安稳与你 提交于 2019-12-22 05:33:28
问题 I've downloaded and installed NServiceBus 4.0, but I'm having some difficulty when the bus starts up... 2013-09-18 15:53:40,887 [1] WARN NServiceBus.Persistence.Raven.RavenUserInstall er [(null)] <(null)> - Failed to add user to raven. Processing will continue System.MissingMethodException: Method not found: 'Raven.Abstractions.Data.PutRes ult Raven.Client.Connection.IDatabaseCommands.Put(System.String, System.Nullable `1, Raven.Json.Linq.RavenJObject, Raven.Json.Linq.RavenJObject)'. at

What is causing EventStore to throw ConcurrencyException so easily?

匆匆过客 提交于 2019-12-21 19:49:09
问题 Using JOliver EventStore 3.0, and just getting started with simple samples. I have a simple pub/sub CQRS implementation using NServiceBus. A client sends commands on the bus, a domain server recieves and processes the commands and stores events to the eventstore, which are then published on the bus by the eventstore's dispatcher. a read-model server then subscribes to those events to update the read-model. Nothing fancy, pretty much by-the-book. It is working, but just in simple tests I am

What is causing EventStore to throw ConcurrencyException so easily?

泪湿孤枕 提交于 2019-12-21 19:46:01
问题 Using JOliver EventStore 3.0, and just getting started with simple samples. I have a simple pub/sub CQRS implementation using NServiceBus. A client sends commands on the bus, a domain server recieves and processes the commands and stores events to the eventstore, which are then published on the bus by the eventstore's dispatcher. a read-model server then subscribes to those events to update the read-model. Nothing fancy, pretty much by-the-book. It is working, but just in simple tests I am

Using NServiceBus in an Amazon EC2 hosted application

十年热恋 提交于 2019-12-21 03:40:32
问题 We're starting a new project that has some messaging and queueing requirements that are pretty basic, but in the future there may be some additional requirements for things such as sagas to process messages that might arrive out of order and need to be resequenced. We've just recently released a project that's completely hosted on Amazon EC2 which also has a simple messaging system in it. We have a very simplistic little pub/sub mechanism whereby we receive a message and then figure out which

NServiceBus with Unity 2.0?

强颜欢笑 提交于 2019-12-21 03:33:34
问题 Anyone using NServiceBus 2.0 successfully with Unity 2.0? I've tried to compile sources of NServiceBus.ObjectBuilder.Unity.dll against Unity 2.0 assemblies but got several compile-time errors because of changed/deleted signatures of many object methods in new Unity. In the documentation Udi Dahan says that attaching any container is as easy as implementing 5 methods of IContainer . But when i look into NServiceBus.ObjectBuilder.Unity implementation i see that there is a LOT more work to be

NServiceBus with Unity 2.0?

帅比萌擦擦* 提交于 2019-12-21 03:33:00
问题 Anyone using NServiceBus 2.0 successfully with Unity 2.0? I've tried to compile sources of NServiceBus.ObjectBuilder.Unity.dll against Unity 2.0 assemblies but got several compile-time errors because of changed/deleted signatures of many object methods in new Unity. In the documentation Udi Dahan says that attaching any container is as easy as implementing 5 methods of IContainer . But when i look into NServiceBus.ObjectBuilder.Unity implementation i see that there is a LOT more work to be

NServiceBus Publish() vs. Send() in website context

你。 提交于 2019-12-20 18:33:44
问题 I'm looking to gain a better understanding of why it is recommended to never Publish() messages from a website using NServiceBus (NServiceBus Documentation, scroll about two thirds of the way down). Doesn't it make semantic sense to Publish() events, and to Send() commands? If so, I think it makes sense that a web application can both Publish() and Send() :-) Also, given that using Publish() doesn't require the web application to know about the recipients of the messages (Send() requires the

Using NServiceBus with Asp.Net MVC 2

戏子无情 提交于 2019-12-20 09:24:25
问题 Is there a way to using NServiceBus with Asp.Net MVC 2? I want to send a request message from a Asp.Net MVC2 Application to a Service, which handle the message and reply with a response message. is there a way to do this clearly? 回答1: If you really want to do this, here's how: var sync = Bus.Send<SomeMessage>(/*data*/) .Register((AsyncCallback)delegate(IAsyncResult ar) { var result = ar.AsyncState as CompletionResult; // do something with result.Messages }, null ); sync.AsyncWaitHandle

NServiceBus throws The remote server returned an error: (404) Not Found

核能气质少年 提交于 2019-12-20 04:53:09
问题 I use simple a configuration to run a Publish/Subscribe scenario using NServiceBus. I'm getting this exception: The remote server returned an error: (404) Not Found. at System.Net.HttpWebRequest.GetResponse() at Raven.Client.Connection.HttpJsonRequest.ReadJsonInternal(Func`1 getResponse) in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Connection\HttpJsonRequest.cs:line 332 It's not a fatal one, it's handled somewhere in NServiceBus/RavenDb code, but I wonder why it's happening. I see it