Each incoming operation is translated to an OperationRequest. It is then dispatched with PeerBase.OnOperationRequest.
More...
Each incoming operation is translated to an OperationRequest. It is then dispatched with PeerBase.OnOperationRequest.
◆ OperationRequest() [1/4]
Photon.SocketServer.OperationRequest.OperationRequest |
( |
byte |
operationCode, |
|
|
object |
dataContract |
|
) |
| |
|
inline |
Initializes a new instance of the OperationRequest class.
- Parameters
-
operationCode | The operation Code. |
dataContract | All properties of dataContract with the DataMemberAttribute are mapped to the Parameters dictionary. |
◆ OperationRequest() [2/4]
Photon.SocketServer.OperationRequest.OperationRequest |
( |
byte |
operationCode, |
|
|
Dictionary< byte, object > |
parameters |
|
) |
| |
|
inline |
◆ OperationRequest() [3/4]
Photon.SocketServer.OperationRequest.OperationRequest |
( |
byte |
operationCode | ) |
|
|
inline |
Initializes a new instance of the OperationRequest class.
- Parameters
-
operationCode | The operation Code. |
◆ OperationRequest() [4/4]
Photon.SocketServer.OperationRequest.OperationRequest |
( |
| ) |
|
|
inline |
◆ SetParameters() [1/2]
void Photon.SocketServer.OperationRequest.SetParameters |
( |
Dictionary< byte, object > |
parameters | ) |
|
|
inline |
Replaces the Parameters with parameters .
- Parameters
-
parameters | The parameters to set. |
◆ SetParameters() [2/2]
void Photon.SocketServer.OperationRequest.SetParameters |
( |
object |
dataContract | ) |
|
|
inline |
Converts properties of an object to Parameters. Included properties require the DataMemberAttribute.
- Parameters
-
dataContract | The properties of this object are mapped to Parameters. |
◆ OperationCode
byte Photon.SocketServer.OperationRequest.OperationCode |
|
getset |
Gets or sets the operation code. It determines how the server responds.
◆ Parameters
Dictionary<byte, object> Photon.SocketServer.OperationRequest.Parameters |
|
getset |
Gets or sets the request parameters.
◆ this[byte parameterKey]
object Photon.SocketServer.OperationRequest.this[byte parameterKey] |
|
getset |
Gets or sets the paramter associated with the specified key.
- Parameters
-
parameterKey | The key of the parameter to get or set. |
- Returns
- The parameter associated with the specified key. If the specified key is not found, a get operation throws a KeyNotFoundException, and a set operation creates a new paramter with the specified key.
- Exceptions
-
System.NullReferenceException | The Parameters property has not been initialized. |