Click or drag to resize

ServerChannelBeginTransaction Method

Called before a transaction request is processed by ProcessTransaction(String, Message).

Namespace:  OBCOM.NetClient
Assembly:  OBCOM.NetClient (in OBCOM.NetClient.dll) Version: 40.82.5945.17884 (40.82.5945.17884)
Syntax
public virtual Object BeginTransaction(
	string name,
	Message message
)

Parameters

name
Type: SystemString
The name of the transaction.
message
Type: OBCOM.NetClientMessage
The data of the transaction.

Return Value

Type: Object
A user-defined context object.
Remarks

This method should execute initialization logic common to all transactions, such as starting a database transaction. The user-defined context object returned by this method is later supplied as an input argument to the CommitTransaction(String, Object) or RollbackTransaction(String, Object, Exception) methods.

This method is meant to be overriden by classes that extend ServerChannel. This default implementation does nothing and returns the request message.

See Also