I have a web service that needs to make a call to nservicebus in a synchronized manner. How can this be achieved ?
I have a web service that needs to make a call to nservicebus in a synchronized manner. How can this be achieved ?
I have a web service that needs to make a call to nservicebus in a synchronized manner. How can this be achieved ?
Take a look at the AsyncPages sample. If you want it to be synchronous just block until the callback completes.
Hope this helps!
There s also the option of exposing an NServiceBus endpoint as a web service and wcf service, and those can be invoked synchronously as you would expect.
The client is not an aspx page so I cannot use it like the async sample. I am using RIA services, so I am in no control of the synhronization of the wcf service itself. I solved it by using Wait and Pulse:
[WebMethod]
public string HelloWorld(int number)
{
string returnVal = "" ;
var command = new Command { Id = number };
lock(this)
{
Global.Bus.Send(command).Register<ErrorCodes>(code =>
{
lock(this)
{
returnVal = returnVal = Enum.GetName(typeof(ErrorCodes), code);
Monitor.Pulse(this);
}
}
);
Monitor.Wait(this);
}
return returnVal;
}
I have a web service that needs to make a call to nservicebus in a synchronized manner. How can this be achieved ?
I have an NServiceBus app which receives a particular message when a large database update is required. While this update is happening, I want to either somehow ignore all incoming messages of this ...
My employer is a software vendor for a specific market. Our customers integrate our system with others using web services. We use Microsoft technology, and our web services are implemented in ASP.NET ...
I have a service which needs to run on multiple machines picking jobs off of a single queue ensuring each job is only undertaken by a single service. I also need to publish messages for all services ...
First of all i will describe current state: Server consists of several WCF services, hosted in one or several win services on diffirent machines. Service responsible for recieving data from ...
I am trying to implement publisher - subscribe in my project of asp.net (wcf) web services. When i am trying to create bus in global.asax protected void Application_Start(object sender, EventArgs e)...
I m just geting started with NServiceBus and can t figure out what I m missing when configuring the MsmqTransport in code. If I configure the publisher like this; IBus bus = Configure.With() ...
I m trying to use the Distributor in the NServiceBus FullDuplex sample but I can t get it working. I ve been following the this guide Getting the NServiceBus Distributor Working, but it doesn t work. ...