Skip to content

Commit d7a7d2f

Browse files
committed
Add Register method to DredisCommandHandler
Introduced a Register method that allows multiple ICommand instances to be registered at once by adding them to the internal commands list. This simplifies command registration and improves extensibility.
1 parent f19f16a commit d7a7d2f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

DredisCommandHandler.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,11 @@ protected override void ChannelRead0(IChannelHandlerContext ctx, IRedisMessage m
652652
}
653653
}
654654

655+
public void Register(params ICommand[] commands)
656+
{
657+
this.commands.AddRange(commands);
658+
}
659+
655660
/// <summary>
656661
/// Executes command handling and converts unexpected exceptions into Redis error replies.
657662
/// </summary>

0 commit comments

Comments
 (0)