C# 클래스 Google.Api.Gax.Expiration

Expiration specified by relative timeout or absolute deadline.
파일 보기 프로젝트 열기: googleapis/gax-dotnet 1 사용 예제들

공개 메소드들

메소드 설명
FromDeadline ( System.DateTime deadline ) : Expiration

Create an Expiration with an absolute deadline.

Deadlines in the past are valid, and will cause immediate failure of the operation being performed.

FromTimeout ( System.TimeSpan timeout ) : Expiration

Create an Expiration with a relative timeout.

Zero or negative timeouts are valid, and will cause immediate failure of the operation being performed.

비공개 메소드들

메소드 설명
Expiration ( System.TimeSpan timeout, System.DateTime deadline ) : System

메소드 상세

FromDeadline() 공개 정적인 메소드

Create an Expiration with an absolute deadline.
Deadlines in the past are valid, and will cause immediate failure of the operation being performed.
public static FromDeadline ( System.DateTime deadline ) : Expiration
deadline System.DateTime The absolute deadline. Should be a UTC datetime.
리턴 Expiration

FromTimeout() 공개 정적인 메소드

Create an Expiration with a relative timeout.
Zero or negative timeouts are valid, and will cause immediate failure of the operation being performed.
public static FromTimeout ( System.TimeSpan timeout ) : Expiration
timeout System.TimeSpan The relative timeout.
리턴 Expiration