AmsRouterConfiguration Class
AmsRouterConfiguration configuration class.
Inheritance Hierarchy
System.Object
TwinCAT.Ads.Configuration.AmsRouterConfiguration
Namespace: TwinCAT.Ads.Configuration
Assembly: TwinCAT.Ads.ConfigurationProviders (in TwinCAT.Ads.ConfigurationProviders.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
public class AmsRouterConfigurationThe AmsRouterConfiguration type exposes the following members.
Methods
|
|
Name |
Description |
|---|---|---|
|
|
Aligns the AmsRouterConfiguration with the AmsConfiguration global object.
| |
|
|
Creates a default AmsRouterConfiguration object with address set to '1.1.1.1.1.1'. | |
|
|
Determines whether the specified object is equal to the current object. | |
|
|
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. | |
|
|
Serves as the default hash function. | |
|
|
Gets the Type of the current instance. | |
|
|
Creates a shallow copy of the current Object. | |
|
|
Returns a string that represents the current object. |
Remarks
This configuration object is used in conjunction with the 'Microsoft.Extensions.Configuration.ConfigurationBinder' Get method to transform the generic IConfiguration into a concrete configuration class.
C#
AmsRouterConfiguration? config = ConfigurationBinder.Get<AmsRouterConfiguration>(_configuration);The content of the configuration is read by a so called configuration builder (https://learn.microsoft.com/en-us/dotnet/core/extensions/configuration) When the configuration (coming from Environment Variables, appsettings configuration files etc.) aligns to the RouterConfig class, an instance with filled properties is created. To see an example for the configuration please have look at RouterConfig
See Also
Other Resources
https://learn.microsoft.com/en-us/dotnet/core/extensions/configuration
Beckhoff Automation GmbH & Co. KG 2001-2026