Click or drag to resize

ILockApi Interface

Provides method to operate with shared resources on different processes

Namespace:  Casewhere.Runtime.DSL.Api
Assembly:  Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.1.0
Syntax
C#
public interface ILockApi

The ILockApi type exposes the following members.

Methods
  NameDescription
Public methodCode exampleLock
Execute the lock context
Public methodRelease
Release lock context by lock id
Top
Examples
var lockApi = ctx.Use<ILockApi>();
lockApi.Lock(lockId, waitingTime, expiredTime);
// do lock logic
lockApi.Release(lockId);
See Also