title: .NetCore with SoapCore how make the authentication
body: <p>I want to add authentication as NetworkCredential but I do not know how do I set the authentication</p>
  
  <pre><code>var binding = new BasicHttpBinding();
          var endpoint = new EndpointAddress(new Uri(string.Format("http://{0}:5050/Service.svc", Environment.MachineName)));
          var channelFactory = new ChannelFactory&lt;ISampleService&gt;(binding, endpoint);
          var serviceClient = channelFactory.CreateChannel();
  </code></pre>