IReadOnlyList<DiscoveredRout> EndpointsWithModel<T>() where T: class
Type Parameters
- T
- the type to look for
Return Value
Read-only list with all endpoints that have the type as argument
IReadOnlyList<DiscoveredRout> EndpointsWithModel<T>() where T: class
private void OnEndpointsCreated(object? sender, EndpointsCreatedEventArgs e) { if (e.FireWallConfiguration.WebServices.CSPReportUrl is null) { var endpoints = e.Links.EndpointsWithModel<CSPModel>(); if (ep.Count != 0) { e.FireWallConfiguration.WebServices.CSPReportUrl = endpoints[0].FullUrl; } } }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2