IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
A collection of utility methods used to create, retrieve and release TcpChannels. More...
Static Public Member Functions | |
static TcpChannel | GetTcpChannel () |
Get a default channel. If one does not exist, then one is created and registered. More... | |
static TcpChannel | GetTcpChannel (string name, int port) |
Get a channel by name, casting it to a TcpChannel. Otherwise, create, register and return a TcpChannel with that name, on the port provided as the second argument. More... | |
static TcpChannel | GetTcpChannel (string name, int port, int limit) |
Get a channel by name, casting it to a TcpChannel. Otherwise, create, register and return a TcpChannel with that name, on the port provided as the second argument. More... | |
static void | SafeReleaseChannel (IChannel channel) |
Unregisters the IChannel from the ChannelServices registry. More... | |
Static Private Member Functions | |
static TcpChannel | CreateTcpChannel (string name, int port, int limit) |
Create a TcpChannel with a given name on a given port. More... | |
Static Private Attributes | |
static Logger | log = InternalTrace.GetLogger(typeof(ServerUtilities)) |
A collection of utility methods used to create, retrieve and release TcpChannels.
|
inlinestaticprivate |
Create a TcpChannel with a given name on a given port.
name | The name of the channel to create. |
port | The port number of the channel to create. |
limit | The rate limit of the channel to create. |
|
inlinestatic |
Get a default channel. If one does not exist, then one is created and registered.
Referenced by NUnit.Engine.Internal.Tests.ServerUtilityTests.CanGetTcpChannelOnSpecifiedPort(), NUnit.Engine.Internal.Tests.ServerUtilityTests.CanGetTcpChannelOnUnspecifiedPort(), and NUnit.Agent.NUnitTestAgent.Main().
|
inlinestatic |
Get a channel by name, casting it to a TcpChannel. Otherwise, create, register and return a TcpChannel with that name, on the port provided as the second argument.
name | The name of the channel |
port | The port to use if the channel must be created |
|
inlinestatic |
Get a channel by name, casting it to a TcpChannel. Otherwise, create, register and return a TcpChannel with that name, on the port provided as the second argument.
name | The name of the channel |
port | The port to use if the channel must be created |
limit | The client connection limit or negative for the default |
|
inlinestatic |
Unregisters the IChannel from the ChannelServices registry.
channel | The channel to unregister. |
Referenced by NUnit.Engine.Internal.Tests.ServerUtilityTests.ReleaseChannels().
|
staticprivate |