DataSource.NET
ReceiveDiscard Method (discardEvent)
NamespacesCaplin.DataSource.PublisherIDataProviderReceiveDiscard(IDiscardEvent)
Callback that informs the DataProvider that an earlier requested subject has now been discarded and it should stop sending data.
Declaration Syntax
C#Visual BasicVisual C++
void ReceiveDiscard(
	IDiscardEvent discardEvent
)
Sub ReceiveDiscard ( _
	discardEvent As IDiscardEvent _
)
void ReceiveDiscard(
	IDiscardEvent^ discardEvent
)
Parameters
discardEvent (IDiscardEvent)
The event that describes the discard (which peer and which subject).
Remarks

The action that an IDataProvider should take when ReceiveDiscard() is called depends on the type of IPublisher that is being used by the DataSource application.

If the IPublisher is an [!:Caplin.DataSource.Publisher.ISimplePublisher] the IDataProvider should maintain a record of the peers subscribing to each particular subject. When a peer discard the subject, the IDataProvider should delete the peer from its listm but continue to publish updates for the subject. When there are no more peers subscribing to the subject, the IDataProvider must stop publishing updates.

If the IPublisher is an IBroadcastPublisher, ReceiveDiscard is never called.

Assembly: DataSource.NET (Module: DataSource.NET) Version: 6.0.12.814 (6.0.12.0814)