Guest User

Untitled

a guest
Jun 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. public static MusicRepo_DBAccess_ServiceClient GetService(object instanceContext)
  2. {
  3. return new MusicRepo_DBAccess_ServiceClient(new InstanceContext(instanceContext), dualBinding, endpointAddress);
  4. }
  5.  
  6. public static MusicRepo_DBAccess_ServiceClient GetService()
  7. {
  8. return new MusicRepo_DBAccess_ServiceClient(new InstanceContext(new WSGateway()), dualBinding, endpointAddress);
  9. }
  10.  
  11. if (!_callbackList.Contains(newUser))
  12. {
  13. _callbackList.Add(newUser);
  14. }
  15. _callbackList.ForEach(c => c.NotifyNewUserOnline(loggedInUser));
  16.  
  17. [ServiceBehavior(
  18. InstanceContextMode = InstanceContextMode.Single)]
Add Comment
Please, Sign In to add comment