Beispiel #1
0
        public override async Task OnActivateAsync()
        {
            _keyData        = new ConnectionGrainKey(this.GetPrimaryKeyString());
            _streamProvider = GetStreamProvider(Constants.STREAM_PROVIDER);

            if (State.ServerId == Guid.Empty)
            {
                return;
            }

            SetupStreams();

            await _serverDisconnectedStream.ResumeAllSubscriptionHandlers(
                async (serverId, _) => await OnDisconnect(ClientDisconnectReasons.ServerDisconnected)
                );
        }