Fantasy
搜索结果

    显示/隐藏目录

    ProcessSession 类

    网络服务器内部会话。

    继承
    object
    Entity
    Session
    ProcessSession
    实现
    IEntity
    IPool
    ISupportedMultiEntity
    IDisposable
    继承成员
    Session.Channel
    Session.RemoteEndPoint
    Session.RequestCallback
    Session.OnDispose
    Session.Dispose()
    Entity.Id
    Entity.RunTimeId
    Entity.IsDisposed
    Entity.Scene
    Entity.Parent
    Entity.Type
    Entity.GetParent<T>()
    Entity.Create<T>(Scene, bool, bool)
    Entity.Create<T>(Scene, long, bool, bool)
    Entity.AddComponent<T>(bool)
    Entity.AddComponent<T>(long, bool)
    Entity.AddComponent(Entity)
    Entity.AddComponent<T>(T)
    Entity.GetComponent<T>()
    Entity.GetComponent(Type)
    Entity.GetComponent<T>(long)
    Entity.GetOrAddComponent<T>(bool)
    Entity.RemoveComponent<T>(bool)
    Entity.RemoveComponent<T>(long, bool)
    Entity.RemoveComponent(Entity, bool)
    Entity.RemoveComponent<T>(T, bool)
    Entity.Deserialize(Scene, bool)
    Entity.ForEachSingleCollection
    Entity.ForEachTransfer
    Entity.ForEachMultiEntity
    Entity.ForEachEntity
    Entity.IsPool()
    Entity.SetIsPool(bool)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    命名空间: Fantasy.Network
    程序集: Fantasy.Net.dll
    语法
    public sealed class ProcessSession : Session, IEntity, IPool, ISupportedMultiEntity, IDisposable

    方法

    | 编辑本文 查看源代码

    Call(IRequest, long)

    发送一个RPC消息

    声明
    public override FTask<IResponse> Call(IRequest request, long routeId = 0)
    参数
    类型 名称 描述
    IRequest request

    请求消息的实例

    long routeId

    routeId

    返回
    类型 描述
    FTask<IResponse>
    重写
    Session.Call(IRequest, long)
    | 编辑本文 查看源代码

    Call(IRouteRequest, long)

    发送一个RPC消息

    声明
    public override FTask<IResponse> Call(IRouteRequest request, long routeId = 0)
    参数
    类型 名称 描述
    IRouteRequest request

    请求Route消息的实例

    long routeId

    routeId

    返回
    类型 描述
    FTask<IResponse>
    重写
    Session.Call(IRouteRequest, long)
    | 编辑本文 查看源代码

    Send(IMessage, uint, long)

    发送消息到服务器内部。

    声明
    public override void Send(IMessage message, uint rpcId = 0, long routeId = 0)
    参数
    类型 名称 描述
    IMessage message

    要发送的消息。

    uint rpcId

    RPC 标识符。

    long routeId

    路由标识符。

    重写
    Session.Send(IMessage, uint, long)
    | 编辑本文 查看源代码

    Send(IRouteMessage, uint, long)

    发送路由消息到服务器内部。

    声明
    public override void Send(IRouteMessage routeMessage, uint rpcId = 0, long routeId = 0)
    参数
    类型 名称 描述
    IRouteMessage routeMessage

    要发送的路由消息。

    uint rpcId

    RPC 标识符。

    long routeId

    路由标识符。

    重写
    Session.Send(IRouteMessage, uint, long)
    | 编辑本文 查看源代码

    Send(ProcessPackInfo, uint, long)

    发送一个消息,框架内部使用建议不要用这个方法。

    声明
    public override void Send(ProcessPackInfo packInfo, uint rpcId = 0, long routeId = 0)
    参数
    类型 名称 描述
    ProcessPackInfo packInfo

    一个ProcessPackInfo消息包

    uint rpcId

    如果是RPC消息需要传递一个RPCId

    long routeId

    routeId

    重写
    Session.Send(ProcessPackInfo, uint, long)
    | 编辑本文 查看源代码

    Send(MemoryStreamBuffer, uint, long)

    发送一个消息

    声明
    public override void Send(MemoryStreamBuffer memoryStream, uint rpcId = 0, long routeId = 0)
    参数
    类型 名称 描述
    MemoryStreamBuffer memoryStream

    需要发送的MemoryStreamBuffer

    uint rpcId

    如果是RPC消息需要传递一个RPCId

    long routeId

    routeId

    重写
    Session.Send(MemoryStreamBuffer, uint, long)
    | 编辑本文 查看源代码

    Send(uint, long, Type, APackInfo)

    发送一个消息,框架内部使用建议不要用这个方法。

    声明
    public override void Send(uint rpcId, long routeId, Type messageType, APackInfo packInfo)
    参数
    类型 名称 描述
    uint rpcId

    如果是RPC消息需要传递一个RPCId

    long routeId

    routeId

    Type messageType

    消息的类型

    APackInfo packInfo

    packInfo消息包

    重写
    Session.Send(uint, long, Type, APackInfo)

    实现

    IEntity
    IPool
    ISupportedMultiEntity
    IDisposable

    扩展方法

    JsonHelper.ToJson<T>(T)
    • 编辑本文
    • 查看源代码
    本文内容
    Back to top Generated by DocFX