Class RssMessageAdapter
- Namespace
- StockSharp.Rss
- Assembly
- StockSharp.Rss.dll
The market-data message adapter for RSS.
[MediaIcon("Rss_logo.svg")]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Rss", Description = "RssAdapter", GroupName = "America")]
[MessageAdapterCategory(MessageAdapterCategories.News)]
public class RssMessageAdapter : HistoricalAsyncMessageAdapter, IMessageAdapter, IMessageChannel, ICloneable<IMessageChannel>, ICloneable, IPersistable, ILogReceiver, ILogSource, IDisposable, INotifyPropertyChanged, IAddressAdapter<string>
- Inheritance
-
RssMessageAdapter
- Implements
-
ICloneable<IMessageChannel>IPersistable
- Inherited Members
- Extension Methods
Constructors
RssMessageAdapter(IdGenerator)
Initializes a new instance of the RssMessageAdapter.
public RssMessageAdapter(IdGenerator transactionIdGenerator)
Parameters
transactionIdGenerator
IdGeneratorTransaction id generator.
Properties
Address
RSS feed address.
[Display(ResourceType = typeof(LocalizedStrings), Name = "Address", Description = "RssAddress", GroupName = "Rss", Order = 0)]
public string Address { get; set; }
Property Value
CustomDateFormat
Dates format. Required to be filled if RSS stream format is different from ddd, dd MMM yyyy HH:mm:ss zzzz.
[Display(ResourceType = typeof(LocalizedStrings), Name = "DatesFormat", Description = "DatesFormatDesc", GroupName = "Rss", Order = 1)]
public string CustomDateFormat { get; set; }
Property Value
Methods
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
OnNewsSubscriptionAsync(MarketDataMessage, CancellationToken)
protected override ValueTask OnNewsSubscriptionAsync(MarketDataMessage mdMsg, CancellationToken cancellationToken)
Parameters
mdMsg
MarketDataMessagecancellationToken
CancellationToken
Returns
Save(SettingsStorage)
Save settings.
public override void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
ToString()
public override string ToString()