public TokenProviderMiddleware(
            RequestDelegate next,
            IOptions <TokenProviderOptions> options,
            TokenValidationParameters tokenValidationParameters,
            ILoggerFactory loggerFactory,
            IParticipantApplication participantApplication)
        {
            _next   = next;
            _logger = loggerFactory.CreateLogger <TokenProviderMiddleware>();
            _tokenValidationParameters = tokenValidationParameters;
            _participantApplication    = participantApplication;

            _options = options.Value;
            ThrowIfInvalidOptions(_options);

            _serializerSettings = new JsonSerializerSettings
            {
                Formatting = Formatting.Indented
            };
        }
 public ParticipantController(IParticipantApplication participantApplication)
 {
     _participantApplication = participantApplication;
 }