C# 클래스 Sage.Integration.Northwind.Application.API.Token

상속: IComparable
파일 보기 프로젝트 열기: Sage/SData-Contracts 1 사용 예제들

공개 메소드들

메소드 설명
CompareTo ( object obj ) : int

Compares the current instance with another object of the same type.

DeserializeToken ( string strToken ) : Token

Creates a new instance of type Token from a token's string representation.

GetId ( Token token ) : int
SerializeTokenToString ( Token token ) : string

Serializes an instance of type Token to a string.

The string representation is as followed: id + SequenceNo + InitRequest id: 29 chars SequenceNo: 10 chars InitRequest: 1 char (1=true; 0=false) Each part is right padded with ' '.

Token ( ) : System
Token ( Identity id, int sequenceNumber ) : System
Token ( Identity id, int sequenceNumber, bool initRequest ) : System

메소드 상세

CompareTo() 공개 메소드

Compares the current instance with another object of the same type.
obj is not the same type as this instance.
public CompareTo ( object obj ) : int
obj object An object to compare with this instance.
리턴 int

DeserializeToken() 공개 정적인 메소드

Creates a new instance of type Token from a token's string representation.
public static DeserializeToken ( string strToken ) : Token
strToken string The string representation of a token.
리턴 Token

GetId() 공개 정적인 메소드

public static GetId ( Token token ) : int
token Token
리턴 int

SerializeTokenToString() 공개 정적인 메소드

Serializes an instance of type Token to a string.
The string representation is as followed: id + SequenceNo + InitRequest id: 29 chars SequenceNo: 10 chars InitRequest: 1 char (1=true; 0=false) Each part is right padded with ' '.
public static SerializeTokenToString ( Token token ) : string
token Token The object to be serialized.
리턴 string

Token() 공개 메소드

public Token ( ) : System
리턴 System

Token() 공개 메소드

public Token ( Identity id, int sequenceNumber ) : System
id Identity
sequenceNumber int
리턴 System

Token() 공개 메소드

public Token ( Identity id, int sequenceNumber, bool initRequest ) : System
id Identity
sequenceNumber int
initRequest bool
리턴 System