Server.Gateways Property
Returns the current server’s gateways.
Description
The Gateways property provides access to the gateways associated with the current server. Gateways enable connection and communication between different server instances.
Syntax
public IGateways Gateways;
Property Value
Type: IGateways
Interface that represents the server’s gateway collection.
Example
Server server = new Server();
// Access the gateways
IGateways gateways = server.Gateways;
// Iterate over available gateways
foreach (var gateway in gateways)
{
Console.WriteLine(gateway.Name);
}