To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/2wcWQaKy-sUJ.--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-dis...@googlegroups.com.
You should use Consumes<T>.Context actually, that's the best way to do it now.
On Wed, Aug 15, 2012 at 9:51 PM, schaibaa <adam.s...@gmail.com> wrote:
OK... well...ÂI'm not sure why this worked, but on the page that was not working correctly, the @Page directive Async was set to true:<%@ Page Async="true" %>ÂTurning this off fixed the problem. Â Seems totally innocuous and not intuitive.. but, fixed my problem.
On Wednesday, August 15, 2012 10:39:32 PM UTC-4, schaibaa wrote:Hi Guys,I updated to 2.6 today and am stuck on a weird issue --I don't think it's related to 2.6 - but possible?Anyway, do my request/response classes need to implement CorrelatedBy?Also, should I be using Consumes<IConsumesContext<Type>>.All instead of .Consumes<Type>.All ?The issue is that I have identical code on 2 aspx web form pages... creating the same request/response, etc... one of them works perfectly, the other waits until my timeout is reached -- it doesn't time out, it goes into HandleI can't figure it out :)Thanks!
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
You should use Consumes<T>.Context actually, that's the best way to do it now.
On Wed, Aug 15, 2012 at 9:51 PM, schaibaa <adam.s...@gmail.com> wrote:
OK... well...ÂI'm not sure why this worked, but on the page that was not working correctly, the @Page directive Async was set to true:<%@ Page Async="true" %>ÂTurning this off fixed the problem. Â Seems totally innocuous and not intuitive.. but, fixed my problem.
On Wednesday, August 15, 2012 10:39:32 PM UTC-4, schaibaa wrote:Hi Guys,I updated to 2.6 today and am stuck on a weird issue --I don't think it's related to 2.6 - but possible?Anyway, do my request/response classes need to implement CorrelatedBy?Also, should I be using Consumes<IConsumesContext<Type>>.All instead of .Consumes<Type>.All ?The issue is that I have identical code on 2 aspx web form pages... creating the same request/response, etc... one of them works perfectly, the other waits until my timeout is reached -- it doesn't time out, it goes into HandleI can't figure it out :)Thanks!
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
                bus.PublishRequest(                     new Request { message = "Hello" },                     callback => callback.Handle<Response>(response => {/* Do something useful */} ));- Wiebe
To unsubscribe from this group, send email to masstransit-dis...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/R8gACITV1IwJ.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/2wcWQaKy-sUJ.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/R8gACITV1IwJ.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-dis...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/jQGNVFwAxL4J.
Thanks,
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/R8gACITV1IwJ.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsubscribe...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
Thanks,
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/R8gACITV1IwJ.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsubscribe...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
>>>>>>>> To view this discussion on the web visit
>>>>>>>> https://groups.google.com/d/msg/masstransit-discuss/-/2wcWQaKy-sUJ.
>>>>>>>>
>>>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "masstransit-discuss" group.
>>>>>> To post to this group, send email to masstrans...@googlegroups.com.
>>>>>> To unsubscribe from this group, send email to
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msg/masstransit-discuss/-/R8gACITV1IwJ.
>>>>>>
>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "masstransit-discuss" group.
>>>>> To post to this group, send email to masstrans...@googlegroups.com.
>>>>> To unsubscribe from this group, send email to
>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>
>>>>>
>>>>
>>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "masstransit-discuss" group.
>>> To post to this group, send email to masstrans...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msg/masstransit-discuss/-/jQGNVFwAxL4J.
>>>
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "masstransit-discuss" group.
> To post to this group, send email to masstrans...@googlegroups.com.
> To unsubscribe from this group, send email to
To unsubscribe from this group, send email to masstransit-dis...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/6lwgR0dVO9MJ.
-d
>>>>>>>> To view this discussion on the web visit
>>>>>>>> https://groups.google.com/d/msg/masstransit-discuss/-/2wcWQaKy-sUJ.
>>>>>>>>
>>>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "masstransit-discuss" group.
>>>>>> To post to this group, send email to masstrans...@googlegroups.com.
>>>>>> To unsubscribe from this group, send email to
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msg/masstransit-discuss/-/R8gACITV1IwJ.
>>>>>>
>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "masstransit-discuss" group.
>>>>> To post to this group, send email to masstrans...@googlegroups.com.
>>>>> To unsubscribe from this group, send email to
>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>
>>>>>
>>>>
>>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "masstransit-discuss" group.
>>> To post to this group, send email to masstrans...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msg/masstransit-discuss/-/jQGNVFwAxL4J.
>>>
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "masstransit-discuss" group.
> To post to this group, send email to masstrans...@googlegroups.com.
> To unsubscribe from this group, send email to
> To view this discussion on the web visit
> https://groups.google.com/d/msg/masstransit-discuss/-/Y8XDpkKufjsJ.
>
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-dis...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/6lwgR0dVO9MJ.
I see the same issue with 2.6.1 -- the response actually arrives but is not getting dispatched correctly?The last message I see in the log is:DEBUG MassTransit.Context.ServiceBusReceiveContext - Dispatching message on rabbitmq://localhost/ip2 from thread 5but my PublishRequest callback is not actually getting hit.rolling back to 2.1.1 :(
On Wednesday, August 15, 2012 10:39:32 PM UTC-4, schaibaa wrote:
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/MaHqcH7BP8cJ.
There are extensive tests on request/response and they all pass.
If you can submit a failing unit test (via Gist, or whatever), we can try to reproduce it. But everything we have setup verifies that the request/response support in MT with RabbitMQ works.
On Fri, Aug 24, 2012 at 3:50 PM, Andrei Volkov <zvo...@gmail.com> wrote:
I see the same issue with 2.6.1 -- the response actually arrives but is not getting dispatched correctly?The last message I see in the log is:DEBUG MassTransit.Context.ServiceBusReceiveContext - Dispatching message on rabbitmq://localhost/ip2 from thread 5but my PublishRequest callback is not actually getting hit.rolling back to 2.1.1 :(
On Wednesday, August 15, 2012 10:39:32 PM UTC-4, schaibaa wrote:Hi Guys,I updated to 2.6 today and am stuck on a weird issue --I don't think it's related to 2.6 - but possible?Anyway, do my request/response classes need to implement CorrelatedBy?Also, should I be using Consumes<IConsumesContext<Type>>.All instead of .Consumes<Type>.All ?The issue is that I have identical code on 2 aspx web form pages... creating the same request/response, etc... one of them works perfectly, the other waits until my timeout is reached -- it doesn't time out, it goes into HandleI can't figure it out :)Thanks!
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-dis...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/6nO5Bplu88sJ.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/MaHqcH7BP8cJ.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/6nO5Bplu88sJ.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-dis...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/2QOFm_kmxjwJ.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/6nO5Bplu88sJ.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsubscribe...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsubscribe...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsubscribe...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsubscribe...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsubscribe...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
public static class BusExtensions{/// <summary>/// Sends a command and blocks while waiting for the result using a specified timeout./// </summary>/// <param name="bus">The bus instance.</param>/// <param name="command">The command to send.</param>/// <param name="timeoutMilliseconds">The timout duration in milliseconds.</param>public static void BasicRequest<TRequest>(this IServiceBus bus, TRequest command, TimeSpan timeOut) where TRequest : class{Thread t = new Thread(() => PerformRequest<TRequest>(bus, command, timeOut));t.Start();t.Join();}private static void PerformRequest<TRequest>(IServiceBus bus, TRequest command, TimeSpan timeOut) where TRequest : class{bus.PublishRequest(command, requestConfig =>{requestConfig.Handle<SuccessResponse>(message => { /* TODO: handle */ });requestConfig.SetTimeout(timeOut);});}}
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/MaHqcH7BP8cJ.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/6nO5Bplu88sJ.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-discuss+unsub...@googlegroups.com.
>>>>>>>> To view this discussion on the web visit
>>>>>>>> https://groups.google.com/d/msg/masstransit-discuss/-/MaHqcH7BP8cJ.
>>>>>>>>
>>>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "masstransit-discuss" group.
>>>>>> To post to this group, send email to masstrans...@googlegroups.com.
>>>>>> To unsubscribe from this group, send email to
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msg/masstransit-discuss/-/6nO5Bplu88sJ.
>>>>>>
>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "masstransit-discuss" group.
>>>>> To post to this group, send email to masstrans...@googlegroups.com.
>>>>> To unsubscribe from this group, send email to
>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "masstransit-discuss" group.
>>>> To post to this group, send email to masstrans...@googlegroups.com.
>>>> To unsubscribe from this group, send email to
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>>
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "masstransit-discuss" group.
>>> To post to this group, send email to masstrans...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "masstransit-discuss" group.
> To post to this group, send email to masstrans...@googlegroups.com.
> To unsubscribe from this group, send email to
System.Web.HttpContext httpContext = System.Web.HttpContext.Current;Bus.Instance.PublishRequest<YourRequest>(request, config =>{config.Handle<YourResponse>((response) =>{// do something with httpContext, not HttpContext.Curent.});});