Not an issue but a clarification.
How do you implement self-hosted exactly?
Add an endpoint to your App.config file.
is this in a new file called App.config? I notice that fresh WCF project doesn't have App.config
<services>
<service name="SwaggerWcf.SwaggerWcfEndpoint">
<endpoint address="http://localhost/docs" binding="webHttpBinding" contract="SwaggerWcf.ISwaggerWcfEndpoint" />
</service>
</services>
And create a WebServiceHost
Create a WebServiceHost
var swaggerHost = new WebServiceHost(typeof(SwaggerWcfEndpoint));
swaggerHost.Open();
where do you put this line above?
Not an issue but a clarification.
How do you implement self-hosted exactly?
Add an endpoint to your
App.configfile.is this in a new file called
App.config? I notice that fresh WCF project doesn't haveApp.configAnd create a WebServiceHost
Create a WebServiceHost
where do you put this line above?