locked
Create sample chat application in windows phone 8 RRS feed

  • General discussion

  • Hi

    i am trying create one sample chat application in windows phone 8 i am trying to use below link

    https://code.msdn.microsoft.com/windowsapps/Windows-Phone-8-Chat-1fa5eccf. when i downloaded the source code i did not find any web service code in that solution

    can any one help where he created  web service  and . is it possible to create private messages also how can i achieve it

    thanks

    Sri


    Wednesday, July 29, 2015 4:21 AM

All replies

  • Hello,

    I have seen this example, in that author use SignalR concept. The web service should not be in the same solution because of establishing a connection between client and server is enough to have the server URI in client side. In this solution server URI is  "http://chatme.somee.com/" which is sets in  ChatMeHelper.SignalRHelper's constructor 

    namespace ChatMeHelper
    {
      public class SignalRHelper
      {
        public event EventHandler OnConnected;
        public event EventHandler OnRecieved;
        private readonly HubConnection _connection;
        private IHubProxy _myHub;
    
        public SignalRHelper()
        {
    
        _connection = new HubConnection("http://chatme.somee.com/");
                
        _myHub = _connection.CreateHubProxy("ChatHub");
        }
      }
    }

     

    You can get more information about SignalR from here: 

    http://www.asp.net/signalr

    Here are some examples for SignalR chat applications  (client and service are in the same solution )

    https://code.msdn.microsoft.com/Using-SignalR-in-WPF

     If the answer helped you, don't forget mark it as  an answer.. Thanks !

    Wednesday, July 29, 2015 9:18 AM