Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The properties available on the Context. Not all properties may be available at a given point on a context. All context properties are available through WsGetOperationContextProperty.
Syntax
typedef enum {
WS_OPERATION_CONTEXT_PROPERTY_CHANNEL = 0,
WS_OPERATION_CONTEXT_PROPERTY_CONTRACT_DESCRIPTION = 1,
WS_OPERATION_CONTEXT_PROPERTY_HOST_USER_STATE = 2,
WS_OPERATION_CONTEXT_PROPERTY_CHANNEL_USER_STATE = 3,
WS_OPERATION_CONTEXT_PROPERTY_INPUT_MESSAGE = 4,
WS_OPERATION_CONTEXT_PROPERTY_OUTPUT_MESSAGE = 5,
WS_OPERATION_CONTEXT_PROPERTY_HEAP = 6,
WS_OPERATION_CONTEXT_PROPERTY_LISTENER = 7,
WS_OPERATION_CONTEXT_PROPERTY_ENDPOINT_ADDRESS = 8
} WS_OPERATION_CONTEXT_PROPERTY_ID;
Constants
WS_OPERATION_CONTEXT_PROPERTY_CHANNEL Value: 0 This value is a handle to the underlying channel. This property is available to service operations , to the WS_SERVICE_MESSAGE_RECEIVE_CALLBACK, WS_SERVICE_ACCEPT_CHANNEL_CALLBACK and WS_SERVICE_CLOSE_CHANNEL_CALLBACK. |
WS_OPERATION_CONTEXT_PROPERTY_CONTRACT_DESCRIPTION Value: 1 The value represents the contract description. This property is available to service operations , to the WS_SERVICE_MESSAGE_RECEIVE_CALLBACK, WS_SERVICE_ACCEPT_CHANNEL_CALLBACK and WS_SERVICE_CLOSE_CHANNEL_CALLBACK. |
WS_OPERATION_CONTEXT_PROPERTY_HOST_USER_STATE Value: 2 The value is a pointer to the host state specified on the service host as the WS_SERVICE_PROPERTY_HOST_USER_STATE service property. This property is available to service operations and to the WS_SERVICE_MESSAGE_RECEIVE_CALLBACK. |
WS_OPERATION_CONTEXT_PROPERTY_CHANNEL_USER_STATE Value: 3 The value is a pointer to the channel state specified through WS_SERVICE_ACCEPT_CHANNEL_CALLBACK. This property is available to service operations and to the WS_SERVICE_MESSAGE_RECEIVE_CALLBACK. |
WS_OPERATION_CONTEXT_PROPERTY_INPUT_MESSAGE Value: 4 The value is a pointer to the underlying input message. This property is available to service operations and to the WS_SERVICE_MESSAGE_RECEIVE_CALLBACK. |
WS_OPERATION_CONTEXT_PROPERTY_OUTPUT_MESSAGE Value: 5 The value is a pointer to the underlying output message. This property is available only to service operations. |
WS_OPERATION_CONTEXT_PROPERTY_HEAP Value: 6 The value is a pointer to the WS_HEAP. This property is available to a service operation. Please see the memory management section in service operations for usage. |
WS_OPERATION_CONTEXT_PROPERTY_LISTENER Value: 7 |
WS_OPERATION_CONTEXT_PROPERTY_ENDPOINT_ADDRESS Value: 8 |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2008 R2 [desktop apps | UWP apps] |
Header | webservices.h |