DataSource.NET
ReceiveRequest Method (requestEvent)
NamespacesCaplin.DataSource.PublisherIDataProviderReceiveRequest(IRequestEvent)
Callback that informs the DataProvider that a new request has been received and it should start sending data.
Declaration Syntax
C#Visual BasicVisual C++
void ReceiveRequest(
	IRequestEvent requestEvent
)
Sub ReceiveRequest ( _
	requestEvent As IRequestEvent _
)
void ReceiveRequest(
	IRequestEvent^ requestEvent
)
Parameters
requestEvent (IRequestEvent)
The event that describes the request (which peer and which subject).
Remarks

The action that an IDataProvider should take when ReceiveRequest() 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 record the peer that has issued the request, and if it is the first request for the subject, it should start sending data. The list of subscribed peers is used to determine when the IDataProvider should stop sending data (see ReceiveDiscard(IDiscardEvent).

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

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