title: Add scope and extension to endpoint in code
body: <p>I have a discovery endpoint for my WCF service.</p>
  
  <p>In my discovery client I need to search for all services of specific type.
  For this purpose I'm thinking to use Scope feature and WCF service metadata extension.</p>
  
  <pre><code>// Create DiscoveryClient
  DiscoveryClient discoveryClient = new DiscoveryClient(new UdpDiscoveryEndpoint());
  // Find ICalculatorService endpoints            
  FindCriteria findCriteria = new FindCriteria(typeof(IAgent));
  findCriteria.Duration = TimeSpan.FromSeconds(5);
  findCriteria.Scopes.Add(new Uri("net.tcp://cybertech.com/CallTesting/AgentService/1/Cisco"));
  FindResponse findResponse = discoveryClient.Find(findCriteria);
  </code></pre>
  
  <p>Is it possible to configure service endpoint metadata like Scope and Extensions in code.
  If yes, what is the API for that? I didn't found much on the internet. </p>
  
  <p>I need in-code solution, because I'm hosting service in-code and i'm not using XML configuration.</p>