title: Restrict WCF client from accessing certain public classes and methods
body: <p>I have the following in my project.</p>
  
  <blockquote>
    <p>WarehouseAPI.Core.dll // contains all data access code.</p>
    
    <p>WCF service // references the WarehouseAPI.Core.dll  library.</p>
  </blockquote>
  
  <p>when the wcf client consumes the service it gets access to all the public methods and classes in WarehouseAPI.Core.dll but I just want to grant access only to certain classes and methods only.</p>
  
  <p>How can I achieve this?</p>