コード例 #1
0
        public override async System.Threading.Tasks.Task OnDisconnected(bool stopCalled)
        {
            var id = Context.ConnectionId;

            EmailModel asyncEmails = new EmailModel();

            if (stopCalled)
            {
                Clients.AllExcept(id).userIsDisconnected();

                //sends the email to helpdesk group
                await asyncEmails.CreatesUserEndSessionEmail(CacheChatMessagesList, CacheChatMessagesList.First()._ChatGroupName);
            }


            // return base.OnDisconnected(stopCalled);
        }