示例#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
文件: Event.cs 项目: nemanjazz/iog
 public System.Threading.Tasks.Task Disconnect()
 {
     MemberManager.RemoveSubscription(Context.ConnectionId);
     return(Clients.leave(Context.ConnectionId, DateTime.Now.ToString()));
 }