Advertisement
user366312

IChatService.cs

Apr 19th, 2019
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.58 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.ServiceModel;
  5. using System.Text;
  6.  
  7. namespace ChatClient
  8. {
  9.     // our hosted interface
  10.     [ServiceContract(CallbackContract = typeof(IChatService))]
  11.     public interface IChatService
  12.     {
  13.         [OperationContract(IsOneWay = true)]
  14.         void Join(string memberName);
  15.        
  16.         [OperationContract(IsOneWay = true)]
  17.         void Leave(string memberName);
  18.        
  19.         [OperationContract(IsOneWay = true)]
  20.         void SendMessage(string memberName, string message);
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement