Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a client application that is going to be running in the backround, all the time. It pings the database every 5 to 60 minutes to check for new incidents being logged. When the application starts it runs this code and the channel factory will never close until the user terminates the apllication.
I don't see any open/close extensions for the channel that is created. I have noticed other examples on the web use the ClientBased object which discusses cache, has open/close methods, etc. but I haven't read enough on them to sink in yet. Would this be ok to just leave as is?

myChannelFactory = New ServiceModel.ChannelFactory(Of IncedentScratch.IIncidentNotifications)(myWSHttpBinding, endPointAddress)

'create a single channel
Dim incidentService As IncedentScratch.IIncidentNotifications
incidentService = myChannelFactory.CreateChannel()
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900