Example #1
0
 public MessagePushHandler(RequestDelegate next, IApplicationLifetime appLifetime, ILoggerFactory logFactory, IMessageSource messageSource, AntiCswshTokenValidator tokenValidator, string url)
 {
     _log            = logFactory.CreateLogger <MessagePushHandler>();
     _messageSource  = messageSource;
     _next           = next;
     _shutdown       = appLifetime.ApplicationStopping;
     _tokenValidator = tokenValidator;
     _url            = url;
 }
 public SetAntiCswshCookie(AntiCswshTokenValidator tokenValidator)
 {
     _tokenValidator = tokenValidator;
 }