LockingPersistenceProvider.Create Method

Definition

Creates instance state information in the persistence store.

Overloads

Create(Object, TimeSpan)

Creates instance state information in the persistence store using parameters passed into the method. This method does not unlock the instance in the persistence store after saving the instance state.

Create(Object, TimeSpan, Boolean)

This method creates instance state information in the persistence store using parameters passed into the method. The method unlocks the instance in the instance store if the value of the unlockInstance parameter is true.

Create(Object, TimeSpan)

Creates instance state information in the persistence store using parameters passed into the method. This method does not unlock the instance in the persistence store after saving the instance state.

C#
public override object Create(object instance, TimeSpan timeout);

Parameters

instance
Object

The instance object whose state information must be saved into the persistence store.

timeout
TimeSpan

The interval in which the operation must complete before timing out.

Returns

The state information.

Applies to

.NET Framework 4.8.1 та інші версії
Продукт Версії
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Create(Object, TimeSpan, Boolean)

This method creates instance state information in the persistence store using parameters passed into the method. The method unlocks the instance in the instance store if the value of the unlockInstance parameter is true.

C#
public abstract object Create(object instance, TimeSpan timeout, bool unlockInstance);

Parameters

instance
Object

The instance object whose state information is saved into the persistence store.

timeout
TimeSpan

The interval within which the operation must complete before timing out.

unlockInstance
Boolean

true if the instance must be unlocked in the persistence store; otherwise false.

Returns

The state information.

Applies to

.NET Framework 4.8.1 та інші версії
Продукт Версії
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1