Used by a Requestor to begin a session.
Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax
C#
public DOFOperationSession beginSession( DOFInterface iface, DOFInterfaceID sessionType, DOFOperationControl control, int timeout, DOFObjectSessionOperationListener operationListener, Object context )
Parameters
- iface
- Type: org.opendof.core.oalDOFInterface
Any interface being currently provided by the target provider of this session. The system uses this interface to locate the correct provider. Also, if a DOFProviderException is thrown by the Provider, the system uses iface to decode the exception. This must not be null. - sessionType
- Type: org.opendof.core.oalDOFInterfaceID
The session type. This is a hint to the provider that this interface should be provided on the session object (possibly in addition to others), and defines the purpose and contract for the session. Must not be null. - control
- Type: org.opendof.core.oalDOFOperationControl
The control to use for the request. - timeout
- Type: SystemInt32
The duration of the session, in milliseconds. After this time, the session object will no longer be available. Use DOF.TIMEOUT_NEVER to create a session with indefinite duration. Then use DOFOperation.cancel() to end the session. Must be >= 0. - operationListener
- Type: org.opendof.core.oalDOFObjectSessionOperationListener
The listener to receive notification of the session being opened. If null, the session may be obtained by calling Session.waitSession(int) . - context
- Type: SystemObject
An optional, user-definable object that will be passed back in listeners as a member of DOFOperation. May be null.
Return Value
Type: DOFOperationSessionThe session operation. You may call DOFOperation.cancel() on this operation to end the session. Will not be null.
Remarks
destroy()
See Also