/// <summary>
 /// Ctor <see cref="Top10PlayersMostHandsConsoleCommand"/>.
 /// </summary>
 /// <param name="options"></param>
 /// <param name="notificationManager"></param>
 /// <param name="handsHistoryManager">Hands history command.</param>
 public Top10PlayersMostHandsConsoleCommand(IOptions <CommandsMetadata> options,
                                            INotificationManager notificationManager,
                                            IHandsHistoryManager handsHistoryManager)
     : base(notificationManager, options.Value.Top10HandsCommand)
 {
     _handsHistoryManager = handsHistoryManager ?? throw new ArgumentNullException(nameof(handsHistoryManager));
 }
 /// <summary>
 /// Ctor <see cref="RemoveHandConsoleCommand"/>.
 /// </summary>
 /// <param name="options">Options.</param>
 /// <param name="notificationManager">Notification manager.</param>
 /// <param name="handsHistoryManager"></param>
 public RemoveHandConsoleCommand(IOptions <CommandsMetadata> options,
                                 INotificationManager notificationManager,
                                 IHandsHistoryManager handsHistoryManager)
     : base(notificationManager, options.Value.RemoveHandCommand)
 {
     _handsHistoryManager = handsHistoryManager;
 }
Beispiel #3
0
 /// <summary>
 /// Ctor <see cref="PathConsoleCommand"/>.
 /// </summary>
 /// <param name="options">Options.</param>
 /// <param name="notificationManager">Notification manager.</param>
 /// <param name="handsHistoryManager">Hands history manager.</param>
 public PathConsoleCommand(IOptions <CommandsMetadata> options, INotificationManager notificationManager,
                           IHandsHistoryManager handsHistoryManager) : base(notificationManager, options.Value.UpdatePathCommand)
 {
     _handsHistoryManager = handsHistoryManager ?? throw new ArgumentNullException(nameof(handsHistoryManager));
 }