当前位置: 首页>>代码示例>>C#>>正文


C# IMessageReceiver.ReceiveMessage方法代码示例

本文整理汇总了C#中IMessageReceiver.ReceiveMessage方法的典型用法代码示例。如果您正苦于以下问题:C# IMessageReceiver.ReceiveMessage方法的具体用法?C# IMessageReceiver.ReceiveMessage怎么用?C# IMessageReceiver.ReceiveMessage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IMessageReceiver的用法示例。


在下文中一共展示了IMessageReceiver.ReceiveMessage方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SendUserListUpdateMessage

 /// <summary>
 /// Functionality:This method do following things
 ///               1-SenderID=-1 represent its send by server
 ///               2-Send all participant list of running conference by assinging infoMsg.AttendeeProfileList=ClientList
 ///                 infoMsg.AttendeeProfileList is HashTable
 ///               3-Receive message to a particular id
 /// Status : This function is not using anywhere in the code.
 ///                     
 /// </summary>
 /// <param name="receiver"></param>
 private void SendUserListUpdateMessage(IMessageReceiver receiver)
 {
     ServerInfoMessage infoMsg = new ServerInfoMessage();
     infoMsg.SenderID=-1;
     infoMsg.AttendeeProfileList = ClientList;
     //	((IMessageReceiver) this._dispatcher.TransparentProxy).ReceiveMessage(infoMsg);
     receiver.ReceiveMessage(infoMsg);
     infoMsg = null; // GC
 }
开发者ID:zaeem,项目名称:FlexCollab,代码行数:19,代码来源:conferenceRoom.cs

示例2: SendConferenceParameters

        /// <summary>
        /// This method is used long before for sending logging messages
        /// of Document Sharing,Web Sharing etc.
        /// It should be removed from the code as per discussion. 
        /// </summary>
        /// <param name="receiver"></param>
        private void SendConferenceParameters(IMessageReceiver receiver)
        {
            StateUpdateMessage stateMessage2=new StateUpdateMessage();
            stateMessage2.updateType=UpdateTypeCode.UpdateMixedMessages;
            stateMessage2.SenderID=-1;
            Console.WriteLine("Logged Messages Count = " + LoggedMessages.Count);
            stateMessage2.dataArray=(ArrayList)this.LoggedMessages.Clone();
            receiver.ReceiveMessage(stateMessage2);

            stateMessage2 = null; //GC
            GC.Collect(); //GC

            if(this.DocumentSharingList.Count > 0) //Send the document sharing messages
            {// Todo::Ahmed u can look at it. I've stored documentsharing messages in a hashtable
                // so that there is only one message of a particular prestation session. this reduces
                // the the flickering at the client side.
                StateUpdateMessage stateMessage3=new StateUpdateMessage();
                stateMessage3.updateType=UpdateTypeCode.UpdateMixedMessages;
                stateMessage3.SenderID=-1;
                System.Collections.ICollection collection =  this.DocumentSharingList.Values;
                stateMessage3.dataArray = new ArrayList(collection);
                receiver.ReceiveMessage(stateMessage3);

                stateMessage3 = null; //GC
            }
            else if(this.WebBrowserList.Count > 0)
            {
                StateUpdateMessage stateMessage3=new StateUpdateMessage();
                stateMessage3.updateType=UpdateTypeCode.UpdateMixedMessages;
                stateMessage3.SenderID=-1;
                System.Collections.ICollection collection =  this.WebBrowserList.Values;
                stateMessage3.dataArray = new ArrayList(collection);
                receiver.ReceiveMessage(stateMessage3);

                stateMessage3 = null; //GC
            }
            GC.Collect(); //GC
            if(msgSynchronization != null)
                receiver.ReceiveMessage(msgSynchronization);
        }
开发者ID:zaeem,项目名称:FlexCollab,代码行数:46,代码来源:conferenceRoom.cs


注:本文中的IMessageReceiver.ReceiveMessage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。