Click or drag to resize

Protocol Methods

The Protocol type exposes the following members.

Methods
  NameDescription
Public methodDispose
Clean up the usage of controllers for the connection
Protected methodEnsureController
Makes sure that there is an instance of a specific controller. Also makes sure that security is in place. Knowing what methods the connection can call.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodExecuteCall
Invoke the correct RPC controller/method with the payload. Also handles return values when needed
Protected methodExecuteCallSynchronously
Invoke the correct RPC controller/method with the payload. Also handles return values when needed Will execute 1 operation at the time. Other operations will wait. This will be executed when the IController or the method being invoked is decorated with the RunSynchronouslyAttribute
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFlushTransport
Flushes the IBaseTransport write stream
Protected methodGetControllerDelegate
Creates a ControllerDelegate to use when calling the controller/method
Protected methodGetDeadConnectionFrame
Sent to clients when ping has failed more times than allowed
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Protected methodGetPingFrame
Each protocol is responsible for returning a valid ping frame for that protocol
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasControllerInstanceOf
True if the controllers repository has a instance of the specific BinaryKey
Protected methodInitClientStats
Setup the properties on the ClientStats object
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReadLoop
Each protocol should implement a read loop
Public methodRemoveController
Removes a controller instance from the Controllers repository.
Public methodSend(Byte)
Enqueue the data to send and update the IServerStatistics
Public methodSend(BinaryKey, String, Byte)
Each protocol is responsible for building the message to send
Protected methodSend(Byte, Byte, Byte, Byte)
Public methodSendLoop
Send loop that reads the OutQueue
Protected methodStartPing
If heartbeat is enabled on this endpoint the method will initiate a ping/pong sequence
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also