SIFWorks ADK 2.0
OnRequest Method (outStream, query, zone, info)
NamespacesEdustructures.SifWorksIPublisherOnRequest(IDataObjectOutputStream, Query, IZone, IMessageInfo)

[This is preliminary documentation and is subject to change.]

Respond to a SIF_Request received from a zone. The implementation should evaluate the supplied Query to build a set of SIFDataObjects that satisfy the conditions and field restrictions placed on the query. To return these objects to the ZIS, repeatedly call the
CopyC#
DataObjectOutputStream.write( SIFDataObject )
method. The ADK returns the results of the request to the requestor by sending one or more SIF_Response messages. This is handled in a separate thread managed by the framework. If the number of SIFDataObjects passed to the output stream is too large to fit into a single SIF_Response message, the ADK handles breaking it up into multiple packets. The result data may be temporarily stored on disk until all packets can be returned to the ZIS.
Declaration Syntax
C#Visual BasicVisual C++
void OnRequest(
	IDataObjectOutputStream outStream,
	Query query,
	IZone zone,
	IMessageInfo info
)
Sub OnRequest ( _
	outStream As IDataObjectOutputStream, _
	query As Query, _
	zone As IZone, _
	info As IMessageInfo _
)
void OnRequest (
	IDataObjectOutputStream^ outStream, 
	Query^ query, 
	IZone^ zone, 
	IMessageInfo^ info
)
Parameters
outStream (IDataObjectOutputStream)
The output stream to send SIFDataObject results to
query (Query)
The query conditions
zone (IZone)
The zone this SIF_Request was received on
info (IMessageInfo)
Provides protocol-specific information about the message.

Assembly: Edustructures.SifWorks.Adk (Module: Edustructures.SifWorks.Adk) Version: 2.0.0.10