C# 클래스 Amazon.Runtime.Internal.Util.OptimisticLockedTextFile

Provides line-based read/write access to a file. The file can be read into memory, changed, then written back to disk. When the file is persisted back to disk, an optimistic concurrency check is performed to make sure the file hasn't changed since it was originally read. This class is not threadsafe.
파일 보기 프로젝트 열기: aws/aws-sdk-net 1 사용 예제들

Private Properties

프로퍼티 타입 설명
HasEnding bool
Read void
ReadLinesWithEndings List

공개 메소드들

메소드 설명
OptimisticLockedTextFile ( string filePath ) : System

Construct a new OptimisticLockedTextFile.

Persist ( ) : void

Persist changes to disk after an optimistic concurrency check is completed.

ToString ( ) : string

비공개 메소드들

메소드 설명
HasEnding ( string line ) : bool
Read ( ) : void
ReadLinesWithEndings ( string str ) : List

메소드 상세

OptimisticLockedTextFile() 공개 메소드

Construct a new OptimisticLockedTextFile.
public OptimisticLockedTextFile ( string filePath ) : System
filePath string path of the file
리턴 System

Persist() 공개 메소드

Persist changes to disk after an optimistic concurrency check is completed.
public Persist ( ) : void
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string