⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 receiver.cs

📁 remoting编程
💻 CS
字号:
/*
  csc.exe /t:library c:\RemotingChatRoom\Server\Receiver.cs
*/

using System;
using System.Runtime.Remoting;
//Receiver 对象必须要继承 MarshalByRefObject,由于相对于服务器, Receiver 对象 也要为其提供远程服务。
//仅仅是签名一致的代理类,是不是 abstarct class 无所谓
abstract class Receiver : MarshalByRefObject
{
	//这个就是被服务器端远程回调的函数
	public abstract void Message_Receive1(string s);
//	{
//		throw new NotImplementedException();
//	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -