ValueTask ISessionEventHost.HandleSessionClosedEvent(AppSession session, CloseReason reason) { return(FireSessionClosedEvent(session, reason)); }
ValueTask ISessionEventHost.HandleSessionConnectedEvent(AppSession session) { return(FireSessionConnectedEvent(session)); }
protected virtual void OnNewClientAccept(IListener listener, IChannel channel) { var session = new AppSession(this, channel); HandleSession(session); }
public abstract ValueTask HandlePackage(AppSession session, TPackageInfo package);
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()); }