Skip to content

Conversation

@xingsy97
Copy link
Contributor

@xingsy97 xingsy97 commented Nov 14, 2022

Summary of the changes

  • Separate RemoveConnectionFromAllGroups from RemoveConnectionFromGroup
  • Before this PR, ...FromAllGroups was implemented by calling ...FromGroup with group=null

@xingsy97 xingsy97 requested a review from Y-Sindo November 14, 2022 08:09

public abstract Task RemoveFromGroupAsync(string connectionId, string groupName, CancellationToken cancellationToken = default);

public abstract Task RemoveFromAllGroupsAsync(string connectionId, CancellationToken cancellationToken);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public abstract Task RemoveFromAllGroupsAsync(string connectionId, CancellationToken cancellationToken);
public abstract Task RemoveFromAllGroupsAsync(string connectionId, CancellationToken cancellationToken = default);

Copy link
Contributor Author

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)
Copy link
Member

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?

Copy link
Contributor Author

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));
Copy link
Member

@Y-Sindo Y-Sindo Nov 14, 2022

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@xingsy97 xingsy97 merged commit 8fa5a7a into Azure:dev Nov 14, 2022
@xingsy97 xingsy97 deleted the fix-remove-all branch November 14, 2022 14:05
terencefan pushed a commit to terencefan/azure-signalr that referenced this pull request May 5, 2023
* Decouple RemoveConnectionFromAllGroups from RemoveConnectionFromGroup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants