This is part of how I do that with the backend for NH Prof

public override void AfterStart()
{
 var bus = container.Resolve<IServiceBus>();
new Thread(() =>
 {
do
{
 bus.Send(bus.Endpoint, new CheckOrders());
Thread.Sleep(TimeSpan.FromMinutes(1));
 } while (true);
})
{
 IsBackground = true
}.Start();




2010/10/14 João Bragança <[email protected]>

> Hey all,
>
> I have to poll this external service - which is actually just
> downloading a hideously corrupted CSV file - and translate that into
> meaningful commands in my domain. When the message consumer receives
> the message it will DelaySend it again to keep the polling going. I
> think I can start this process off with IServiceBusAware.BusStarted.
> Of course this will break down as soon as the bus is stopped and
> started again, because then there will be two polling operations going
> on.
>
> Is it possible to cancel a message sent with DelaySend? Or, to detect
> is there is one waiting to be sent and not send on BusStarted? Should
> I even be using IServiceBusAware for this?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Rhino Tools Dev" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rhino-tools-dev%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rhino-tools-dev?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rhino-tools-dev?hl=en.

Reply via email to