Share via


ServiceFakesHostExtensions Class

Definition

Extension methods supporting Kestrel server unit testing scenarios.

public static class ServiceFakesHostExtensions
type ServiceFakesHostExtensions = class
Public Module ServiceFakesHostExtensions
Inheritance
ServiceFakesHostExtensions

Methods

CreateClient(IHost, HttpMessageHandler, Func<Uri,Boolean>)

Creates an HttpClient to call the hosted application.

GetListenUris(IHost)

Gets the first available URI the server listens to that passes the filter.

Applies to