示例#1
0
 ValueTask ISessionEventHost.HandleSessionClosedEvent(AppSession session, CloseReason reason)
 {
     return(FireSessionClosedEvent(session, reason));
 }
示例#2
0
 ValueTask ISessionEventHost.HandleSessionConnectedEvent(AppSession session)
 {
     return(FireSessionConnectedEvent(session));
 }
示例#3
0
        protected virtual void OnNewClientAccept(IListener listener, IChannel channel)
        {
            var session = new AppSession(this, channel);

            HandleSession(session);
        }
 public abstract ValueTask HandlePackage(AppSession session, TPackageInfo package);
示例#5
0
 public override async ValueTask HandlePackage(AppSession session, TPackageInfo package)
 {
     await HandlePackageInternal(session, package);
 }
 public override ValueTask HandlePackage(AppSession session, TPackageInfo package)
 {
     HandlePackageInternal(session, package).DoNotAwait();
     return(new ValueTask());
 }