Click or drag to resize

IController Interface

Controller definition.

Namespace:  Crosser.Common.Server
Assembly:  Crosser.Common (in Crosser.Common.dll) Version: 0.0.4
Syntax
C#
public interface IController : IDisposable

The IController type exposes the following members.

Properties
  NameDescription
Public propertyAlias
The alias for the controller, if not set it will default to the class name
Public propertyAuthorize
If true all methods not marked with AllowAnonymous will demand validation
Public propertyAuthorizeAttribute
Used to validate calls...
Public propertyBinaryKey
The unique binary signature of the controller
Public propertyConnectionContext
ConnectionContext, from the protocol instance
Public propertyProtocol
The protocol that this controller belongs to
Top
Methods
  NameDescription
Public methodClose
Will close and dispose the controller
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodOnClosed
Called when the connection is closed or you choose to call Close() on the controller or the client call close()
Public methodOnInitialize
Called when the instance is created. This is called every time the connection creates a new instance of the controller
Top
Extension Methods
  NameDescription
Public Extension MethodCallAllT
The method builds a RPC frame and sends it to all clients having an instance of the IController type T
(Defined by CommunicationExtensions.)
Public Extension MethodCallOthersT
The method builds a RPC frame and sends it to all clients having an instance of the IController type T The calling client is excluded from the clients being called.
(Defined by CommunicationExtensions.)
Public Extension MethodCallWhereT
The method builds a RPC frame and sends it to clients having an instance of the IController type T and matches the expression
(Defined by CommunicationExtensions.)
Public Extension MethodFindT
Finds clients that has instances of the IController and match the expression
(Defined by CommunicationExtensions.)
Public Extension MethodGetCustomAttributesOfTypeTA
Returns all attributes of type TA on a IController object
(Defined by ReflectionHelper.)
Top
See Also