资源简介
界面简洁、效果很炫的 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个文件信息
- 上一篇:CSharp波形显示控件源码.rar
- 下一篇:C#写的串口调试和校验和软件
相关资源
- WPF下基于geplugin的对google earth的开发
- WPF动态添加行列DATAGRID.zip
- WPF 分页控件35610
- WPF中UserControl如何访问它所属的Windo
- WPF标尺控件
- wpf实现的手画板
- WPF实现画板小
- 传智播客wpf基础视频教程(第三季)
- WPF Themes WPF酷炫主题包 高级程序员必
- wpf的listbox滚动翻页
- WPF制作的雷达扫描图及雷达属性图
- WPF目前最好的DateTimePicker
- WPF仿QQ截图-2
- wpf 动态合并datagrid表头单元格
- wpf中英文切换
- WPF时间扩展控件支持时分秒
- WPFVisifire.Charts.dll
- WpfApp.rar
- WPF 4.5 UNLEASHED
- 最简单最通用最完美的WPF快速开发框
- WPF ScrollViewer(滚动条) 仿苹果样式
- WPF3D动画效果演示(超绚)C#
- WPF ViewPort3D 展示且平移操作
- WPF三维立体动画一个WPF项目,利用v
- C#使用WPF实现3d效果的小,3D初学者推
- WPF ComboboxTreeview
- SciChart_v5_Keygen_WPF.zip
- WPF视频教程(全网最全,没有之一)
- WPF MVVM完整登录窗口
- Prism7.1.0.431_WPF_官方中文文档
评论
共有 条评论