title: Programmatically specify custom authorization for WCF (NetTcpBinding)
body: <p>I want to do the same thing as in this link:</p>
  
  <p><a href="http://www.codeproject.com/KB/WCF/Custom_Authorization_WCF.aspx" rel="noreferrer">http://www.codeproject.com/KB/WCF/Custom_Authorization_WCF.aspx</a></p>
  
  <p>But without using configuration files. Can anyone show me how?</p>
  
  <p>Edit: I want to implement both AuthorizationPolicy and the CustomValidator.</p>