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); }
public System.Threading.Tasks.Task Disconnect() { MemberManager.RemoveSubscription(Context.ConnectionId); return(Clients.leave(Context.ConnectionId, DateTime.Now.ToString())); }