Hosting WCF Service in WPF Application
<p>I'm trying to host a WCF service inside a WPF application but I'm unable to do so.</p>

<p>Here is the code I implemented:</p>

<pre><code>ServiceHost host = null;
using (host = new ServiceHost(typeof(WcfJsonTransferRestService.apiService)))
            {
                host.AddServiceEndpoint(typeof(WcfJsonTransferRestService.IApiService), new WebHttpBinding(), "http://localhost:3300/api/endpoint1");
                host.AddServiceEndpoint(typeof(WcfJsonTransferRestService.IApiService), new WebHttpBinding(), "http://localhost:3300/api/endpoint2");
                host.AddServiceEndpoint(typeof(WcfJsonTransferRestService.IApiService), new WebHttpBinding(), "http://localhost:3300/api/endpoint3");

host.Open();
</code></pre>

<p>Everything looks ok and runs fine but the service does not start.</p>

<p>Anyone have an idea of what my problem may be?</p>

<p>Thanks</p>