示例#1
0
        private async Task CompositeChatClient_OnUserUnTimedout(UserUntimedoutEvent userUntimedoutEvent)
        {
            var messageDispatcher = serviceProvider.GetService(typeof(IMessageDispatcher)) as IMessageDispatcher;
            var timeOfSuspension  = datetimeProvider.UtcNow;

            await MarkActiveSuspensionsForUserAsUndone(userUntimedoutEvent.Username, userUntimedoutEvent.UntimedoutBy, timeOfSuspension, messageDispatcher).ConfigureAwait(false);
        }
示例#2
0
 private void PubSubClient_OnUserUnTimedout(object sender, UserUntimedoutEvent e)
 => OnUserUnTimedout?.Invoke(e);
示例#3
0
 private void NewConnection_OnUserUntimedout(object sender, UserUntimedoutEvent e)
 {
     logger.LogInformation("Received untimeout on {arg}, issued by {arg2} in channel {arg3}", e.Username, e.UntimedoutBy, e.Channel);
     OnUserUnTimedout?.Invoke(this, e);
 }