C# Класс P2PStateServer.ServiceMessage

Represents a message originating from a peer, state server or client (web server)
Наследование: HTTPMessage
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
lockCookie uint?
service StateServer
timeout int?

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

Метод Описание
Process ( ) : void

When overriden in a derived class, processes the message.

ServiceMessage ( HTTPPartialData HTTPData, StateServer Service ) : System

Initializes a new instance of the ServiceMessage class

Защищенные методы

Метод Описание
GetKeyValue ( string Text, char Delimiter, string &Key, string &Value ) : void

Parses a string for a Key and a Value

IsValidBase64 ( string Data ) : bool

Verifies the supplied data is in valid Base64 format

Unquote ( string value ) : string

Removes quotes from a string if the string is surrounded by quotes

Validate ( ) : bool

Validates a message

Описание методов

GetKeyValue() защищенный статический Метод

Parses a string for a Key and a Value
protected static GetKeyValue ( string Text, char Delimiter, string &Key, string &Value ) : void
Text string The text to parse
Delimiter char Delimiter seperating key and value
Key string Key
Value string Value
Результат void

IsValidBase64() защищенный статический Метод

Verifies the supplied data is in valid Base64 format
protected static IsValidBase64 ( string Data ) : bool
Data string Data to verify
Результат bool

Process() публичный абстрактный Метод

When overriden in a derived class, processes the message.
public abstract Process ( ) : void
Результат void

ServiceMessage() публичный Метод

Initializes a new instance of the ServiceMessage class
public ServiceMessage ( HTTPPartialData HTTPData, StateServer Service ) : System
HTTPData HTTPPartialData The HTTPPartialData class to load this instance from
Service StateServer State server instance
Результат System

Unquote() защищенный Метод

Removes quotes from a string if the string is surrounded by quotes
protected Unquote ( string value ) : string
value string Quoted/Unquoted string
Результат string

Validate() защищенный Метод

Validates a message
protected Validate ( ) : bool
Результат bool

Описание свойств

lockCookie защищенное свойство

The message lock cookie value
protected uint? lockCookie
Результат uint?

service защищенное свойство

An instance of the state server
protected StateServer service
Результат StateServer

timeout защищенное свойство

The message time-out value
protected int? timeout
Результат int?