KestrunHostManager.TryGet method
Attempts to retrieve a KestrunHost instance by its name.
public static bool TryGet(string name, out KestrunHost? host)
parameter | description |
---|---|
name | The name of the KestrunHost instance to retrieve. |
host | When this method returns, contains the KestrunHost instance associated with the specified name, if found; otherwise, null. |
Return Value
True if the instance was found; otherwise, false.
See Also
- class KestrunHost
- class KestrunHostManager
- namespace Kestrun