Skip to content

Unclear instuction WebServiceHost / Self Host #201

@jtlimson

Description

@jtlimson

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions