|
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
namespace MADMeeting.ServiceLibrary
{
[ServiceContract(SessionMode = SessionMode.Required, CallbackContract = typeof(IServerCallbackToClient))]
public interface IMMService
{
[OperationContract(IsOneWay = true, IsInitiating = true, IsTerminating = false)]
void Say(Person person, String msg, MessageType MsgType);
[OperationContract(IsOneWay = true, IsInitiating = false, IsTerminating = false)]
void Whisper(string to, String msg);
[OperationContract(IsOneWay = false, IsInitiating = true, IsTerminating = false)]
Person[] Subscribe(Person name);
[OperationContract(IsOneWay = false, IsInitiating = false, IsTerminating = true)]
bool Unsubscribe(Person name);
}
public interface IServerCallbackToClient
{
[OperationContract(IsOneWay = true)]
void Receive(Person sender, String message, MessageType MsgType);
[OperationContract(IsOneWay = true)]
void ReceiveWhisper(Person sender, string message);
[OperationContract(IsOneWay = true)]
void UserEnter(Person person);
[OperationContract(IsOneWay = true)]
void UserLeave(Person person);
}
public enum MessageType { ChatMessage, UserEnter, UserLeave, ReceiveWhisper,Control,DesktopShare };
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Working in KLA-Tencor, Chennai as Technical Lead. Born in Bapatla, Guntur (dt), Andhra Pradesh. B.Tech from Bapatla Engineering College, M.Tech from IIT Kanpur.
Interesting areas include Image Processing, C# .NET.