C# Класс Sage.Integration.Northwind.Application.API.Token

Наследование: IComparable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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