By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,654 Members | 1,422 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,654 IT Pros & Developers. It's quick & easy.

WCF singleton service + callbacks

P: n/a
Hi there,
I've a wcf singleton service and I need to send callbacks to all
connected clients. At the status only the last connected client
receive callbacks.

This is the code:

<ServiceBehavior(InstanceContextMode:=InstanceCont extMode.Single, _
Public Class CalculatorService
Implements ICalculator

Private callback As ICalculatorCallback = Nothing

public sub New()
'open my USB comm object
'start secondary thread for receiving data from USB device
threadListener = New System.Threading.Thread(AddressOf
threadListener.IsBackground = True
end sub

public function Connect() as Boolean
callback = OperationContext.Current.GetCallbackChannel(Of
return true
end sub

protected sub Listener

do while threadlistener isnot nothing





end sub

I think i've got to store connected clients somewhere but I don't know
Please help me!

end class

Jul 27 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.