Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion SubscribeConsumer and making it permanent

Received: by 10.216.138.224 with SMTP id a74mr1393850wej.8.1335296660520;
        Tue, 24 Apr 2012 12:44:20 -0700 (PDT)
X-BeenThere: masstransit-discuss@googlegroups.com
Received: by 10.180.76.202 with SMTP id m10ls6844976wiw.1.canary; Tue, 24 Apr
 2012 12:44:19 -0700 (PDT)
Received: by 10.180.92.170 with SMTP id cn10mr2731841wib.3.1335296659970;
        Tue, 24 Apr 2012 12:44:19 -0700 (PDT)
Received: by 10.180.92.170 with SMTP id cn10mr2731840wib.3.1335296659953;
        Tue, 24 Apr 2012 12:44:19 -0700 (PDT)
Return-Path: <d...@drusellers.com>
Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181])
        by gmr-mx.google.com with ESMTPS id w8si5237146wiv.3.2012.04.24.12.44.19
        (version=TLSv1/SSLv3 cipher=OTHER);
        Tue, 24 Apr 2012 12:44:19 -0700 (PDT)
Received-SPF: pass (google.com: domain of d...@drusellers.com designates 209.85.212.181 as permitted sender) client-ip=209.85.212.181;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of d...@drusellers.com designates 209.85.212.181 as permitted sender) smtp.mail=...@drusellers.com
Received: by wibhr17 with SMTP id hr17so969641wib.10
        for <masstransit-discuss@googlegroups.com>; Tue, 24 Apr 2012 12:44:19 -0700 (PDT)
        d=google.com; s=20120113;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type:x-gm-message-state;
        bh=k5BGMVPZLKlEjUPK6Hf+qTg6d6xonQpw/5BqP6tdEzw=;
        b=ZXWFsusgg0/6zLT7BaU+V4mZbCPmwWDG8J19zNuTxppBiFhjYSpsMZUYaImYOzPcG/
         MELGmTTl3oGOj0oJOrxe+uT6PnNzj+Faq5zekgotRFQ830yi12SEWZw2UMaGnPQbKZd3
         duK7zAJUabCJ78HAz4aiZ+OTM7Y39Bu+6Z8WLU99zN1B4RkamrdSwwmxBZYqpNRMFhxz
         Xr77J5mjCmt2vW9N6IBVOScwVx7wqJXnDPBGBXIkFC/dDvNT4A+nX2F4gE6nvcy968op
         uoJ8XTatD5tM3Tln4bW1SgaIy1GzRFz3OWUjaF/vDzmlGO2gMemTPraLakNsZ9RVzBTN
         5LVg==
MIME-Version: 1.0
Received: by 10.180.102.100 with SMTP id fn4mr12673662wib.1.1335296659596;
 Tue, 24 Apr 2012 12:44:19 -0700 (PDT)
Received: by 10.223.114.9 with HTTP; Tue, 24 Apr 2012 12:44:19 -0700 (PDT)
In-Reply-To: <6944380319433065820@unknownmsgid>
References: <6c0bdcdb-2caf-4c22-9082-16b0ddccb...@35g2000yqq.googlegroups.com>
	<CAHwtU2n1T8DURcxgNAg9--4r5o0--N7WbJPqgYbE2auaL2j...@mail.gmail.com>
	<6944380319433065820@unknownmsgid>
Date: Tue, 24 Apr 2012 14:44:19 -0500
Message-ID: <CAHwtU2m6y+kovYnj9KBNzRk95XurxEcD1vP7e35qD+1SAgi...@mail.gmail.com>
Subject: Re: [masstransit-discuss] SubscribeConsumer and making it permanent
From: Dru Sellers <d...@drusellers.com>
To: masstransit-discuss@googlegroups.com
Content-Type: multipart/alternative; boundary=f46d0444ef4f10a57904be71fb70
X-Gm-Message-State: ALoCoQl08KgHwt6Yc5mCqNoPin5YnFfY2yRfYuIfHl4pYfF52Mib7AuOiEAAzt8zCnzP3DlMUf4n

--f46d0444ef4f10a57904be71fb70
Content-Type: text/plain; charset=ISO-8859-1

@chris - would that survive bus.Dispose() ?
-d

On Tue, Apr 24, 2012 at 14:41, Chris Patterson <ch...@phatboyg.com> wrote:

> Or don't call the unsubscribe action.
>
> --
> Chris Patterson
>
>
> On Apr 24, 2012, at 8:20 AM, Dru Sellers <d...@drusellers.com> wrote:
>
> Any call to subscribe from an instance of IServiceBus is going to be a
> temporary subscription. To establish permanent subscriptions, they must be
> setup at config time.
>
> I have updated the docs at:
> http://docs.masstransit-project.com/en/latest/configuration/sub_config_api.html
>
>
> -d
>
>
> On Mon, Apr 23, 2012 at 14:54, Andrei Alecu <aandre...@gmail.com> wrote:
>
>> The delegate supplied during initialize lets you Subscribe a consumer
>> and make it permanent:
>>
>>   var busWorker = ServiceBusFactory.New(
>>                sbc =>
>>                {
>>                    sbc.ReceiveFrom("rabbitmq://localhost/
>> test_queue1");
>>                    sbc.UseRabbitMqRouting();
>>
>>                    sbc.UseControlBus();
>>                    sbc.Subscribe(x =>
>> x.Consumer<MessageConsumer>().Permanent());
>>                });
>>
>> busWorker.SubscribeConsomer however, doesn't seem to have a way to
>> make the subscription permanent. Not sure if I'm missing something or
>> it's an oversight.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "masstransit-discuss" group.
>> To post to this group, send email to masstransit-discuss@googlegroups.com
>> .
>> To unsubscribe from this group, send email to
>> masstransit-discuss+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/masstransit-discuss?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "masstransit-discuss" group.
> To post to this group, send email to masstransit-discuss@googlegroups.com.
> To unsubscribe from this group, send email to
> masstransit-discuss+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/masstransit-discuss?hl=en.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "masstransit-discuss" group.
> To post to this group, send email to masstransit-discuss@googlegroups.com.
> To unsubscribe from this group, send email to
> masstransit-discuss+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/masstransit-discuss?hl=en.
>

--f46d0444ef4f10a57904be71fb70
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div class=3D"gmail_extra">@chris - would that survive bus.Dispose() ?</div=
><div class=3D"gmail_extra">-d<br><br><div class=3D"gmail_quote">On Tue, Ap=
r 24, 2012 at 14:41, Chris Patterson <span dir=3D"ltr">&lt;<a href=3D"mailt=
o:ch...@phatboyg.com" target=3D"_blank">ch...@phatboyg.com</a>&gt;</span> w=
rote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div bgcolor=3D"#FFFFFF"><div>Or don&#39;t c=
all the unsubscribe action.=A0<br><br><div>--</div><div>Chris Patterson</di=
v><div>
<br></div></div><div><div class=3D"h5"><div><br>On Apr 24, 2012, at 8:20 AM=
, Dru Sellers &lt;<a href=3D"mailto:d...@drusellers.com" target=3D"_blank">d=
r...@drusellers.com</a>&gt; wrote:<br>
<br></div><div></div><blockquote type=3D"cite"><div><div class=3D"gmail_ext=
ra">Any call to subscribe from an instance of IServiceBus is going to be a =
temporary subscription. To establish permanent subscriptions, they must be =
setup at config time.</div>

<div class=3D"gmail_extra">
<br></div><div class=3D"gmail_extra">I have updated the docs at:=A0
<a href=3D"http://docs.masstransit-project.com/en/latest/configuration/sub_=
config_api.html" target=3D"_blank">http://docs.masstransit-project.com/en/l=
atest/configuration/sub_config_api.html</a>=A0</div><div class=3D"gmail_ext=
ra">
<br></div><div class=3D"gmail_extra">

-d</div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Mo=
n, Apr 23, 2012 at 14:54, Andrei Alecu <span dir=3D"ltr">&lt;<a href=3D"mai=
lto:aandre...@gmail.com" target=3D"_blank">aandre...@gmail.com</a>&gt;</spa=
n> wrote:<br>


<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">The delegate supplied during initialize lets=
 you Subscribe a consumer<br>
and make it permanent:<br>
<br>
 =A0 var busWorker =3D ServiceBusFactory.New(<br>
 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0sbc =3D&gt;<br>
 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0{<br>
 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0sbc.ReceiveFrom(&quot;rabbitmq://lo=
calhost/<br>
test_queue1&quot;);<br>
 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0sbc.UseRabbitMqRouting();<br>
<br>
 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0sbc.UseControlBus();<br>
 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0sbc.Subscribe(x =3D&gt;<br>
x.Consumer&lt;MessageConsumer&gt;().Permanent());<br>
 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0});<br>
<br>
busWorker.SubscribeConsomer however, doesn&#39;t seem to have a way to<br>
make the subscription permanent. Not sure if I&#39;m missing something or<b=
r>
it&#39;s an oversight.<br>
<span><font color=3D"#888888"><br>
--<br>
You received this message because you are subscribed to the Google Groups &=
quot;masstransit-discuss&quot; group.<br>
To post to this group, send email to <a href=3D"mailto:masstransit-discuss@=
googlegroups.com" target=3D"_blank">masstransit-discuss@googlegroups.com</a=
>.<br>
To unsubscribe from this group, send email to <a href=3D"mailto:masstransit=
-discuss%2Bunsubscribe@googlegroups.com" target=3D"_blank">masstransit-disc=
uss+unsubscribe@googlegroups.com</a>.<br>
For more options, visit this group at <a href=3D"http://groups.google.com/g=
roup/masstransit-discuss?hl=3Den" target=3D"_blank">http://groups.google.co=
m/group/masstransit-discuss?hl=3Den</a>.<br>
<br>
</font></span></blockquote></div><br></div>

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups &=
quot;masstransit-discuss&quot; group.<br>
To post to this group, send email to <a href=3D"mailto:masstransit-discuss@=
googlegroups.com" target=3D"_blank">masstransit-discuss@googlegroups.com</a=
>.<br>
To unsubscribe from this group, send email to <a href=3D"mailto:masstransit=
-discuss+unsubscribe@googlegroups.com" target=3D"_blank">masstransit-discus=
s+unsubscribe@googlegroups.com</a>.<br>

For more options, visit this group at <a href=3D"http://groups.google.com/g=
roup/masstransit-discuss?hl=3Den" target=3D"_blank">http://groups.google.co=
m/group/masstransit-discuss?hl=3Den</a>.<br>


</div></blockquote></div></div></div><div class=3D"HOEnZb"><div class=3D"h5=
">

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups &=
quot;masstransit-discuss&quot; group.<br>
To post to this group, send email to <a href=3D"mailto:masstransit-discuss@=
googlegroups.com" target=3D"_blank">masstransit-discuss@googlegroups.com</a=
>.<br>
To unsubscribe from this group, send email to <a href=3D"mailto:masstransit=
-discuss%2Bunsubscribe@googlegroups.com" target=3D"_blank">masstransit-disc=
uss+unsubscribe@googlegroups.com</a>.<br>

For more options, visit this group at <a href=3D"http://groups.google.com/g=
roup/masstransit-discuss?hl=3Den" target=3D"_blank">http://groups.google.co=
m/group/masstransit-discuss?hl=3Den</a>.<br>


</div></div></blockquote></div><br></div>

--f46d0444ef4f10a57904be71fb70--