Walter.Web.FireWall
EndpointsWithModel<T> Method
Example 
Walter.Web.FireWall Assembly > Walter.Web.FireWall.Infrastructure Namespace > IKnownLinks Interface : EndpointsWithModel<T> Method
the type to look for
Get the endpoints that expect a given model in it's parameter signature
Syntax
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
Example
When the firewall is created you have the ability work with links and perform special program logic on it. The blow sample shows the event triggered by the options configuration of the AddFireWall extension method
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;
                   }
               }
            }
Requirements

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

See Also

Reference

IKnownLinks Interface
IKnownLinks Members