C# Class SmartSync.AtomicFileCounter

Inheritance: IDisposable
ファイルを表示 Open project: projectkudu/KuduCalf Class Usage Examples

Private Properties

Property Type Description
ThrowIfUnexpected void

Public Methods

Method Description
AtomicFileCounter ( string counterFilePath ) : System
Dispose ( ) : void
GetCurrent ( ) : long
IncrementWithAction ( long expectedCount, System.Action act ) : bool
Init ( ) : bool

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
ThrowIfUnexpected ( Exception ex ) : void

Method Details

AtomicFileCounter() public method

public AtomicFileCounter ( string counterFilePath ) : System
counterFilePath string
return System

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

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

GetCurrent() public method

public GetCurrent ( ) : long
return long

IncrementWithAction() public method

public IncrementWithAction ( long expectedCount, System.Action act ) : bool
expectedCount long
act System.Action
return bool

Init() public method

public Init ( ) : bool
return bool