C# Class Sage.Integration.Northwind.Application.API.Token

Inheritance: IComparable
Afficher le fichier Open project: Sage/SData-Contracts Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

CompareTo() public méthode

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.
Résultat int

DeserializeToken() public static méthode

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.
Résultat Token

GetId() public static méthode

public static GetId ( Token token ) : int
token Token
Résultat int

SerializeTokenToString() public static méthode

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.
Résultat string

Token() public méthode

public Token ( ) : System
Résultat System

Token() public méthode

public Token ( Identity id, int sequenceNumber ) : System
id Identity
sequenceNumber int
Résultat System

Token() public méthode

public Token ( Identity id, int sequenceNumber, bool initRequest ) : System
id Identity
sequenceNumber int
initRequest bool
Résultat System