protected override Task <bool> ValidateInternal(SamlResponseValidationContext context)
 {
     base._logProvider.LogMessage("In Response To Rule running.");
     if (context.ResponseContext.SamlInboundMessage.RelayState == null)
     {
         throw new InvalidOperationException("Relay state is missing.");
     }
     ResponseHelper.EnsureRequestIdMatch(context.ResponseContext.SamlInboundMessage.RelayState, context.ResponseContext.StatusResponse.InResponseTo);
     return(Task.FromResult(true));
 }