Class ConfigBasedCurrencyMarket
Provides rate conversion services based on an APP config file
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX.Web.Pay
Assembly: NFX.Web.dll
Syntax
public class ConfigBasedCurrencyMarket : ApplicationComponent, ICurrencyMarketImplementation, ICurrencyMarket, IApplicationComponent, IDisposable, IConfigurable
Constructors
ConfigBasedCurrencyMarket()
Declaration
public ConfigBasedCurrencyMarket()
ConfigBasedCurrencyMarket(IConfigSectionNode)
Declaration
public ConfigBasedCurrencyMarket(IConfigSectionNode node)
Parameters
Type | Name | Description |
---|---|---|
IConfigSectionNode | node |
ConfigBasedCurrencyMarket(Object)
Declaration
public ConfigBasedCurrencyMarket(object director)
Parameters
Type | Name | Description |
---|---|---|
System.Object | director |
ConfigBasedCurrencyMarket(Object, IConfigSectionNode)
Declaration
public ConfigBasedCurrencyMarket(object director, IConfigSectionNode node)
Parameters
Type | Name | Description |
---|---|---|
System.Object | director | |
IConfigSectionNode | node |
Fields
CONFIG_RATE_ATTR
Declaration
public const string CONFIG_RATE_ATTR = "rate"
Field Value
Type | Description |
---|---|
System.String |
CONFIG_TABLES_SECTION
Declaration
public const string CONFIG_TABLES_SECTION = "tables"
Field Value
Type | Description |
---|---|
System.String |
m_Node
Declaration
protected IConfigSectionNode m_Node
Field Value
Type | Description |
---|---|
IConfigSectionNode |
Methods
Configure(IConfigSectionNode)
Declaration
public void Configure(IConfigSectionNode node)
Parameters
Type | Name | Description |
---|---|---|
IConfigSectionNode | node |
ConvertCurrency(String, Amount, String)
Declaration
public virtual Amount ConvertCurrency(string rateTable, Amount from, string targetCurrencyISO)
Parameters
Type | Name | Description |
---|---|---|
System.String | rateTable | |
Amount | from | |
System.String | targetCurrencyISO |
Returns
Type | Description |
---|---|
Amount |
Implements
System.IDisposable