C# Class ctac.SocketService

Inheritance: ISocketService
Mostra file Open project: dshook/centauri-tac

Private Properties

Property Type Description
ConnectAndRequest IEnumerator
DestroySockets void
MakeRequest IEnumerator
PostConstruct void
SocketConnect IEnumerator
onSocketClose void
onSocketError void
onSocketMessage void
onSocketOpen void

Public Methods

Method Description
Disconnect ( System.Guid clientId, string componentName ) : void
Disconnect ( SocketKey key ) : void
Request ( System.Guid clientId, string componentName, string methodName, object data = null ) : void
Request ( SocketKey key, string methodName, object data = null ) : void

Private Methods

Method Description
ConnectAndRequest ( SocketKey key, string methodName, object data ) : IEnumerator
DestroySockets ( ) : void
MakeRequest ( SocketKey key, string methodName, object data ) : IEnumerator
PostConstruct ( ) : void
SocketConnect ( SocketKey key ) : IEnumerator
onSocketClose ( SocketKey key, object sender, CloseEventArgs e ) : void
onSocketError ( SocketKey key, object sender, ErrorEventArgs e ) : void
onSocketMessage ( SocketKey key, object sender, MessageEventArgs e ) : void
onSocketOpen ( SocketKey key, object sender, EventArgs e ) : void

Method Details

Disconnect() public method

public Disconnect ( System.Guid clientId, string componentName ) : void
clientId System.Guid
componentName string
return void

Disconnect() public method

public Disconnect ( SocketKey key ) : void
key SocketKey
return void

Request() public method

public Request ( System.Guid clientId, string componentName, string methodName, object data = null ) : void
clientId System.Guid
componentName string
methodName string
data object
return void

Request() public method

public Request ( SocketKey key, string methodName, object data = null ) : void
key SocketKey
methodName string
data object
return void