SiteCounterNames
StockSharp.Web.Api.Interfaces
How the site counters are written in a text ("@indicator_count") and keyed in the resolved data, and the registration that makes a markdown parser read them: the parser knows no counter until the site names it.
Métodos
FromKeys
public static IEnumerable<SiteCounters> FromKeys(IEnumerable<string> keys)
result = SiteCounterNames.FromKeys(keys)
The site counters the given keys stand for; a key that is no site counter's is skipped.
- keys
- The keys, as a parse collects them.
Retorna: The counters.
GetName
public static string GetName(SiteCounters counter)
result = SiteCounterNames.GetName(counter)
The name a counter is written with: "indicator" for "@indicator_count".
- counter
- The counter.
Retorna: The name.
Register
public static void Register()
SiteCounterNames.Register()
Makes the markdown parser read every site counter. Every process that parses the site's texts calls it before the first parse; a repeated call changes nothing.
ToKey
public static string ToKey(SiteCounters counter)
result = SiteCounterNames.ToKey(counter)
The key a counter's value is found by in the resolved data.
- counter
- The counter.
Retorna: The key.
TryParseKey
public static bool TryParseKey(string key, SiteCounters counter)
result = SiteCounterNames.TryParseKey(key, counter)
The counter a key of the resolved data stands for.
- key
- The key.
- counter
- The counter.
Retorna: when the key is a site counter's.