Creates a controller.
Namespace:
GrassValley.Mseries.AppServerAssembly: GrassValley.Mseries.AppServer (in GrassValley.Mseries.AppServer.dll) Version: 1.0.0.0
Syntax
C# |
---|
public ISimpleController CreateController( string app, Object channelId, out bool isNewConnection ) |
Visual Basic (Declaration) |
---|
Public Function CreateController ( _ app As String, _ channelId As Object, _ <OutAttribute> ByRef isNewConnection As Boolean _ ) As ISimpleController |
Visual C++ |
---|
public: virtual ISimpleController^ CreateController( String^ app, Object^ channelId, [OutAttribute] bool% isNewConnection ) sealed |
Parameters
- app
- Type: System..::.String
Application.
- channelId
- Type: System..::.Object
Channel ID. Value can either be an int value (e.g. 0, 1, ... max channel number) or a channel ID string (e.g. "C1", "R2", "P1", etc.). See the K2's c:\profile\config\config.xml file for more examples.
- isNewConnection
- Type:
System..::.Boolean
%
Is new connection.
Return Value
ISimpleController instanceImplements
IAppServer..::.CreateController(String, Object, Boolean%)Examples
Example 1:
CopyC#
string appName = "your application name"; int channel = 0; bool isNewController = false; ISimpleController icontroller = iappServer.CreateController( appName, channel, out isNewController);
Examples
Example 2:
CopyC#
string appName = "your application name"; string channel = "C1"; bool isNewController = false; ISimpleController icontroller = iappServer.CreateController( appName, channel, out isNewController);