public void Handle(ClientDisconnectRequest message) { Console.WriteLine("receive unsubscription:" + message.ToString()); _subscriptions.RemoveWhere(p => p.Subscriber == message.Subscriber); Console.WriteLine(message.ToString()); Context.Unwatch(message.Subscriber); Context.Stop(message.Subscriber); }
private ClientDisconnectResponse OnDisconnectClient(ClientDisconnectRequest request, ICommandCallerInfo callerinfo) { DeletePlayerEntity(); return new ClientDisconnectResponse(); }