title: Getting details of the call to a WCF service in custom UserNamePasswordValidator
body: <p>I have a WCF service setup with my own UserNamePasswordValidator. When authentication fails in the Validate(string userName, string password)  method I want to write the details to a log as well as throwing a FaultException.</p>
  
  <p>I want to store details of the particular service method that was being called and the parameters that were passed in as well as the username.</p>
  
  <p>How do I access these details from inside the Validate method?</p>
  
  <p>Example code below:</p>
  
  <pre><code>public class ColesUserNameValidator : UserNamePasswordValidator
  {
  
      public override void Validate(string userName, string password)
      {
          if (CheckCredentials(userName, password))
          {
              return;
          }
          else
          {             
              // do something here to get details of the call to the service and send them to a log file 
              throw new FaultException("Unknown Username or Incorrect Password");
          }
      }
  </code></pre>