November Happy Hour will be moved to Thursday December 5th.

Class ConnectionScope

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Helper class to control the scope of a connection, built for the "using-pattern".

Inheritance
System.Object
ConnectionScope
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Data.Providers
Assembly: EPiServer.Data.dll
Version: 9.12.2
Syntax
public sealed class ConnectionScope : IAsyncConnectionScope, IConnectionScope, IDisposable

Constructors

ConnectionScope(IConnectionContext, Boolean)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.

Declaration
public ConnectionScope(IConnectionContext context, bool isOwner)
Parameters
Type Name Description
IConnectionContext context
System.Boolean isOwner

ConnectionScope(IConnectionContext, Boolean, Action)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.

Declaration
public ConnectionScope(IConnectionContext context, bool isOwner, Action completeAction)
Parameters
Type Name Description
IConnectionContext context
System.Boolean isOwner
System.Action completeAction

Properties

Context

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.

Declaration
public IConnectionContext Context { get; }
Property Value
Type Description
IConnectionContext

IsOwner

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Determines if the callee owns the connection/transaction and should close it.

Declaration
public bool IsOwner { get; }
Property Value
Type Description
System.Boolean

Methods

Complete()

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Complete is called when all actions on the connection has been completed for a scope

Declaration
public void Complete()

Dispose()

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.

Declaration
public void Dispose()

Explicit Interface Implementations

IAsyncConnectionScope.Context

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.

Declaration
IAsyncConnectionContext IAsyncConnectionScope.Context { get; }
Returns
Type Description
IAsyncConnectionContext

Implements

System.IDisposable

Extension Methods