91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 321KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-05-07
  • 語言: C#
  • 標簽: WPF??WCF??即時通訊??c#??

資源簡介

界面簡潔、效果很炫的 WPF動畫實現 WCF通信

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections;
using?System.Collections.Generic;
using?System.ServiceModel;
using?Common;


namespace?Chatters
{
????#region?IChat?interface
????///?
????///?This?interface?provides?4?methods?that?may?be?used?in?order?to?clients
????///?to?carry?out?specific?actions?in?the?chat?room.?This?interface
????///?expects?the?clients?that?implement?this?interface?to?be?able?also?support
????///?a?callback?of?type?IChatCallback
????///?
????///?There?are?methods?for
????///?
????///?Say?:?send?a?globally?broadcasted?message
????///?Whisper?:?send?a?personal?message
????///?Join?:?join?the?chat?room
????///?Leave?:?leave?the?chat?room
????///?

????[ServiceContract(SessionMode?=?SessionMode.Required?CallbackContract?=?typeof(IChatCallback))]
????interface?IChat
????{
????????[OperationContract(IsOneWay?=?true?IsInitiating?=?false?IsTerminating?=?false)]
????????void?Say(string?msg);

????????[OperationContract(IsOneWay?=?true?IsInitiating?=?false?IsTerminating?=?false)]
????????void?Whisper(string?to?string?msg);

????????[OperationContract(IsOneWay?=?false?IsInitiating?=?true?IsTerminating?=?false)]
????????Person[]?Join(Person?name);
????????
????????[OperationContract(IsOneWay?=?true?IsInitiating?=?false?IsTerminating?=?true)]
????????void?Leave();
????}
????#endregion
????#region?IChatCallback?interface
????///?
????///?This?interface?provides?4?methods?that?may?be?used?in?order?to?carry?
????///?out?a?callback?to?the?client.?The?methods?are?1?way?(back?to?the?client).
????///?
????///?There?are?methods?for?
????///?
????///?Receive?:?receive?a?globally?broadcasted?message
????///?ReceiveWhisper?:?receive?a?personal?message
????///?UserEnter?:?recieve?notification?a?new?user?has?entered?the?chat?room
????///?UserLeave?:?recieve?notification?a?existing?user?has?left?the?chat?room
????///?

????interface?IChatCallback
????{
????????[OperationContract(IsOneWay?=?true)]
????????void?Receive(Person?sender?string?message);

????????[OperationContract(IsOneWay?=?true)]
????????void?ReceiveWhisper(Person?sender?string?message);

????????[OperationContract(IsOneWay?=?true)]
????????void?UserEnter(Person?person);

????????[OperationContract(IsOneWay?=?true)]
????????void?UserLeave(Person?person);
????}
????#endregion
????#region?Public?enums/event?args
????///?
????///?A?simple?enumeration?for?dealing?with?the?chat?message?types
????///?

????public?enum?MessageType?{?Receive?UserEnter?UserLeave?ReceiveWhisper?};

????///?
????///?This?class?is?used?when?carrying?out?any?of?the?4?chat?callback?actions
????///?such?as?Receive?ReceiveWhisper?UserEnter?UserLeave?
????///?IChatCallback?for?more?details
????///?

????public?class?ChatEventArgs?:?EventArgs
????{
????????public?MessageType?msgType;
????????public?P

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????27646??2007-07-12?20:23??Chatters\chat.png

?????文件???????1000??2007-06-20?11:03??Chatters\ChatService\App.config

?????文件??????20480??2008-10-30?13:37??Chatters\ChatService\bin\Debug\ChatService.exe

?????文件???????1000??2007-06-20?11:03??Chatters\ChatService\bin\Debug\ChatService.exe.config

?????文件??????19968??2008-10-30?13:37??Chatters\ChatService\bin\Debug\ChatService.pdb

?????文件???????5632??2005-12-08?14:51??Chatters\ChatService\bin\Debug\ChatService.vshost.exe

?????文件???????1000??2007-06-20?11:03??Chatters\ChatService\bin\Debug\ChatService.vshost.exe.config

?????文件??????16384??2008-10-30?13:37??Chatters\ChatService\bin\Debug\Person.dll

?????文件??????13824??2008-10-30?13:37??Chatters\ChatService\bin\Debug\Person.pdb

?????目錄??????????0??2008-10-30?13:37??Chatters\ChatService\bin\Debug

?????文件??????20480??2007-01-02?11:15??Chatters\ChatService\bin\Release\ChatService.exe

?????文件???????1008??2007-01-02?11:11??Chatters\ChatService\bin\Release\ChatService.exe.config

?????文件??????15872??2007-01-02?11:15??Chatters\ChatService\bin\Release\ChatService.pdb

?????文件???????5632??2005-09-23?06:56??Chatters\ChatService\bin\Release\ChatService.vshost.exe

?????文件???????1008??2007-01-02?11:11??Chatters\ChatService\bin\Release\ChatService.vshost.exe.config

????..AD...?????????0??2008-10-30?13:33??Chatters\ChatService\bin\Release

????..AD...?????????0??2008-10-30?13:33??Chatters\ChatService\bin

?????文件??????16990??2007-07-25?20:40??Chatters\ChatService\ChatService.cs

?????文件???????2637??2007-07-24?18:06??Chatters\ChatService\ChatService.csproj

?????文件???????2021??2007-07-22?19:15??Chatters\ChatService\ClassDiagram1.cd

?????文件????????184??2007-06-20?11:10??Chatters\ChatService\HOW?TO?CREATE?CLIENT?PROXY.txt

?????文件????????796??2008-10-30?13:37??Chatters\ChatService\obj\ChatService.csproj.FileListAbsolute.txt

?????文件??????20480??2008-10-30?13:37??Chatters\ChatService\obj\Debug\ChatService.exe

?????文件??????19968??2008-10-30?13:37??Chatters\ChatService\obj\Debug\ChatService.pdb

?????文件??????37961??2008-10-30?13:37??Chatters\ChatService\obj\Debug\ResolveAssemblyReference.cache

?????目錄??????????0??2008-10-30?13:33??Chatters\ChatService\obj\Debug\TempPE

?????目錄??????????0??2008-10-30?13:36??Chatters\ChatService\obj\Debug

?????目錄??????????0??2008-10-30?13:33??Chatters\ChatService\obj

?????文件???????1294??2007-07-22?10:39??Chatters\ChatService\Program.cs

?????文件???????1418??2007-01-02?11:11??Chatters\ChatService\Properties\AssemblyInfo.cs

............此處省略72個文件信息

評論

共有 條評論

相關資源