示例#1
0
 public Task Handle(GameweekCurrentlyFinished notification, CancellationToken cancellationToken)
 {
     using var scope = _logger.AddContext(Tuple.Create(nameof(GameweekCurrentlyFinished), notification.Gameweek.Id.ToString()));
     _logger.LogInformation("Refreshing state - finished gw");
     return(_state.Refresh(notification.Gameweek.Id));
 }
示例#2
0
 public Task Handle(GameweekCurrentlyFinished notification, CancellationToken cancellationToken)
 {
     using var scope = _logger.AddContext(Tuple.Create(nameof(GameweekCurrentlyFinished), (notification.Gameweek.Id + 1).ToString()));
     _logger.LogInformation("Refreshing state for finished gw {Gameweek}. Using next gw {NextGameweek}", notification.Gameweek.Id, notification.Gameweek.Id + 1);
     return(_matchState.Refresh(notification.Gameweek.Id + 1)); // monitor next gameweeks matches, since current = finished
 }
示例#3
0
 public Task Handle(GameweekCurrentlyFinished notification, CancellationToken cancellationToken)
 {
     _logger.LogInformation("Refreshing state - finished gw");
     return(_state.Refresh(notification.Gameweek.Id));
 }
示例#4
0
 public Task Handle(GameweekCurrentlyFinished notification, CancellationToken cancellationToken)
 {
     _logger.LogInformation("Refreshing state for finished gw");
     return(_matchState.Refresh(notification.Gameweek.Id + 1)); // monitor next gameweeks matches, since current = finished
 }