Пример #1
0
 /// <summary>
 /// Creates a new instance of a NotificationService, initializes with specified arguments.
 /// </summary>
 /// <param name="options"></param>
 /// <param name="ches"></param>
 public NotificationService(IOptions <NotificationOptions> options, IChesService ches, ILogger <NotificationService> logger)
 {
     this.Options = options.Value;
     this.Ches    = ches;
     _logger      = logger;
 }
Пример #2
0
 /// <summary>
 /// Creates a new instance of a ChesController class.
 /// </summary>
 /// <param name="chesService"></param>
 public ChesController(IChesService chesService)
 {
     _chesService = chesService;
 }