You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
788 B
34 lines
788 B
1 month ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Threading.Tasks;
|
||
|
|
||
|
namespace Sog
|
||
|
{
|
||
|
|
||
|
// 所有类型大小在1~1024之间
|
||
|
public enum ReloadableServiceType
|
||
|
{
|
||
|
None = 0,
|
||
|
|
||
|
|
||
|
MaxTypeID = 256,
|
||
|
}
|
||
|
|
||
|
|
||
|
// 所有逻辑服务器类不能包含静态函数,统一管理
|
||
|
// c# 的dll加载了无法卸载,用AppDomain模式用起来不方便,所以每reload一次内存中多一份所有类的Assembly
|
||
|
// 用静态函数也许容易出错,待后期验证
|
||
|
public interface IReloadableService
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 用来区分reload后不同的service,名字一样,id不同
|
||
|
/// </summary>
|
||
|
uint GetServiceSeqID();
|
||
|
|
||
|
int GetServiceType();
|
||
|
|
||
|
void Dispose();
|
||
|
}
|
||
|
}
|