C# Class SmartSync.FileLock

Inheritance: IDisposable
显示文件 Open project: projectkudu/KuduCalf Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
FileLock ( string lockFile ) : System
Init ( ) : bool
Release ( ) : bool
TryAcquire ( System.TimeSpan timeout ) : bool

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
DeleteFileSafe ( ) : void
ThrowIfUnexpected ( Exception ex ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

FileLock() public method

public FileLock ( string lockFile ) : System
lockFile string
return System

Init() public method

public Init ( ) : bool
return bool

Release() public method

public Release ( ) : bool
return bool

TryAcquire() public method

public TryAcquire ( System.TimeSpan timeout ) : bool
timeout System.TimeSpan
return bool