Click or drag to resize
WebTransaction Class
Class used to handle transaction that works over the web service interface. Make sure to always end the transaction. The transaction can be ended with a call to Commit(), Rollback() or Dispose().
Examples
Example pseudo code:
using (ITransaction transaction = userContext.StartTransaction())
{
    // Update data.

    transaction.Commit();
}
Inheritance Hierarchy
SystemObject
  ArtDatabanken.WebService.ClientWebTransaction

Namespace: ArtDatabanken.WebService.Client
Assembly: ArtDatabanken.WebService.Client (in ArtDatabanken.WebService.Client.dll) Version: 1.3.0.0 (1.3.0.0)
Syntax
public class WebTransaction : ITransaction, 
	IDisposable

The WebTransaction type exposes the following members.

Constructors
  NameDescription
Public methodWebTransaction(IUserContext, ITransactionService)
Create a WebTransaction instance.
Public methodWebTransaction(IUserContext, ITransactionService, Int32)
Create a WebTransaction instance.
Top
Properties
  NameDescription
Public propertyDataSourceInformation
Get information about data source.
Public propertyStarted
Get information about when transaction started.
Public propertyTimeout
Time before transaction timeouts if has not already finished. Unit is seconds.
Top
Methods
  NameDescription
Public methodCommit
Commit the transaction.
Public methodDispose
Implementation of the IDisposable interface. Abort transaction if it has not been commited.
Public methodRollback
Rollback the transaction.
Top
Extension Methods
  NameDescription
Public Extension MethodCheckNotNull
Check that an argument is not null.
(Defined by ObjectExtension.)
Public Extension MethodCheckNull
Check that an argument is null.
(Defined by ObjectExtension.)
Public Extension MethodCheckTransactionTimeout
Check if transaction has timeout.
(Defined by ITransactionExtension.)
Public Extension MethodIsNotNull
Test if an object reference is not null.
(Defined by ObjectExtension.)
Public Extension MethodIsNull
Test if an object reference is null.
(Defined by ObjectExtension.)
Public Extension MethodIsTimeout
Test if transaction has timeout.
(Defined by ITransactionExtension.)
Top
See Also