SessionSendRequest Method (Request, Identity, IEventQueue, CorrelationID) |
Sends the specified request to a service using this session.
Namespace:
Bloomberglp.Blpapi
Assembly:
Bloomberglp.Blpapi (in Bloomberglp.Blpapi.dll) Version: 3.24.10.1
Syntax public CorrelationID SendRequest(
Request request,
Identity identity,
IEventQueue eventQueue,
CorrelationID correlationId
)
Public Function SendRequest (
request As Request,
identity As Identity,
eventQueue As IEventQueue,
correlationId As CorrelationID
) As CorrelationID
public:
virtual CorrelationID^ SendRequest(
Request^ request,
Identity^ identity,
IEventQueue^ eventQueue,
CorrelationID^ correlationId
) sealed
abstract SendRequest :
request : Request *
identity : Identity *
eventQueue : IEventQueue *
correlationId : CorrelationID -> CorrelationID
override SendRequest :
request : Request *
identity : Identity *
eventQueue : IEventQueue *
correlationId : CorrelationID -> CorrelationID
Parameters
- request
- Type: Bloomberglp.BlpapiRequest
Filled in request that needs to be sent to the service.
- identity
- Type: Bloomberglp.BlpapiIdentity
A handle to the user whose privileges are to be used for
this request.
- eventQueue
- Type: Bloomberglp.BlpapiIEventQueue
An event queue to be used to receive response events for this request.
- correlationId
- Type: Bloomberglp.BlpapiCorrelationID
A correlationId to be used to match the response.
Return Value
Type:
CorrelationIDAn internally generated CorrelationID if the specified
correlationId is null or return the specified correlationId.
Implements
ISessionSendRequest(Request, Identity, IEventQueue, CorrelationID)Exceptions Exception | Condition |
---|
InvalidOperationException |
The session is not started.
|
InvalidRequestException |
The request is not compliant with the
schema for the request.
|
IOException |
TAny error occurs while sending the request.
|
RequestQueueOverflowException |
This session has too many enqueued requests.
|
DuplicateCorrelationIDException |
The specified correlationId is already active for this Session.
|
ArgumentException |
The specified Identity was not created through this Session
|
Remarks This method is the same as calling
SendRequest
with a null request label string parameter.
See Also