C# Class core.Core

显示文件 Open project: Pure-Battlefield/gswat Class Usage Examples

Public Methods

Method Description
Connect ( string address, int port, string password, string oldPass ) : String
Core ( ) : System

Constructs an instance of Core Registers handlers to catch ChatMessage events

GetMessageQueue ( ) : IEnumerable
GetMessagesFromDate ( DateTime date ) : IEnumerable
GetMoreMessages ( int numMessages ) : IEnumerable
LoadExistingConnection ( ) : void
LoadServerSettings ( String partitionKey, String rowKey ) : ServerConfig

Queries TableStore for server settings

Log ( String funcName, String message ) : void

Log

MessageHandler ( object sender, ChatEventArgs e ) : void

Private Methods

Method Description
EnqueueMessage ( ChatMessage msg ) : void

Enqueues a message into both Table Store and the current cached queue

Method Details

Connect() public method

public Connect ( string address, int port, string password, string oldPass ) : String
address string
port int
password string
oldPass string
return String

Core() public method

Constructs an instance of Core Registers handlers to catch ChatMessage events
public Core ( ) : System
return System

GetMessageQueue() public method

public GetMessageQueue ( ) : IEnumerable
return IEnumerable

GetMessagesFromDate() public method

public GetMessagesFromDate ( DateTime date ) : IEnumerable
date DateTime
return IEnumerable

GetMoreMessages() public method

public GetMoreMessages ( int numMessages ) : IEnumerable
numMessages int
return IEnumerable

LoadExistingConnection() public method

public LoadExistingConnection ( ) : void
return void

LoadServerSettings() public method

Queries TableStore for server settings
public LoadServerSettings ( String partitionKey, String rowKey ) : ServerConfig
partitionKey String Partition key to query for
rowKey String Row key to query for
return ServerConfig

Log() public method

Log
public Log ( String funcName, String message ) : void
funcName String Current function on the stack
message String Message to log
return void

MessageHandler() public method

public MessageHandler ( object sender, ChatEventArgs e ) : void
sender object
e ChatEventArgs
return void