Пример #1
0
        public void RemoveSubscription(Guid subscriptionId, Guid workspaceId, string callerId)
        {
            Subscription subscription = new Subscription(subscriptionId, workspaceId);

            MemberManager.RemoveSubscription(callerId, subscriptionId.ToString());
            ServerContextSingleton.Instance.ServerContext.RemoveSubscription(subscription);
        }
Пример #2
0
 public System.Threading.Tasks.Task Disconnect()
 {
     MemberManager.RemoveSubscription(Context.ConnectionId);
     return(Clients.leave(Context.ConnectionId, DateTime.Now.ToString()));
 }