-
Notifications
You must be signed in to change notification settings - Fork 108
Fix RemoveConnectionFromAllGroups #1721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| public abstract Task RemoveFromGroupAsync(string connectionId, string groupName, CancellationToken cancellationToken = default); | ||
|
|
||
| public abstract Task RemoveFromAllGroupsAsync(string connectionId, CancellationToken cancellationToken); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| public abstract Task RemoveFromAllGroupsAsync(string connectionId, CancellationToken cancellationToken); | |
| public abstract Task RemoveFromAllGroupsAsync(string connectionId, CancellationToken cancellationToken = default); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
| private readonly IHubLifetimeManager _lifetimeManager; | ||
|
|
||
| public GroupManagerAdapter(IGroupManager groupManager) | ||
| public GroupManagerAdapter(IGroupManager groupManager, IHubLifetimeManager lifetimeManager) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove IGroupManager and implements all the methods with IHubLifetimeManager?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
| { | ||
| if (IsInvalidArgument(connectionId)) | ||
| { | ||
| throw new ArgumentException(NullOrEmptyStringErrorMessage, nameof(connectionId)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method can be deleted. It overrides the base class but exactly does the same thing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
* Decouple RemoveConnectionFromAllGroups from RemoveConnectionFromGroup
Summary of the changes
RemoveConnectionFromAllGroupsfromRemoveConnectionFromGroup...FromAllGroupswas implemented by calling...FromGroupwithgroup=null