Click or drag to resize

ChannelBase Class

Base class of all communication channels with a NetSwitch server.
Inheritance Hierarchy

Namespace:  OBCOM.NetSwitchLib.Utils
Assembly:  OBCOM.NetSwitchLib (in OBCOM.NetSwitchLib.dll) Version: 1.48.7760.35650 (1.48.7760.35650)
Syntax
public abstract class ChannelBase : IDisposable

The ChannelBase type exposes the following members.

Constructors
  NameDescription
Protected methodChannelBase
Constructs a new ChannelBase instance.
Top
Properties
  NameDescription
Public propertyIsConnected
Gets a value that indicates whether this channel is connected.
Public propertyIsSecure
Gets a value that indicates whether this channel is secure
Public propertyKeepAlive
Gets or sets a value that indicates whether the KeepAlive option of this channel is active.
Public propertyReaderBufferFreeSize
Gets or sets the free size of the reader buffer (bytes).
Public propertyReaderBufferMaxSize
Gets or sets the maximum size of the reader buffer (bytes).
Public propertyReaderBufferMinSize
Gets or sets the minimum size of the reader buffer (bytes).
Public propertyReaderBufferWarnSize
Gets or sets the warning size of the reader buffer (bytes).
Public propertyTag
Gets a value that indicates the connection tag of this channel.
Public propertyTcpNoDelay
Gets or sets a value that indicates whether this channel is using the Nagle algorithm.
Public propertyTracing
Gets a value that indicates whether this channel is tracing inbound and outbound messages.
Public propertyTrustStorePass
Gets or sets the password of the PFX/PKCS12 trust store file used to establish secure (SSL/TLS) connections.
Public propertyTrustStorePath
Gets or sets the path of the PFX/PKCS12 trust store file used to establish secure (SSL/TLS) connections.
Top
Methods
  NameDescription
Protected methodConnect
Connects this channel to serverURI.
Public methodDispose
Dispose managed and unmanaged resources.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
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 methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodHandleInbound
Handles an inbound message received by this channel.
Public methodInform
Logs an information message.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSevere(String)
Logs an error message.
Public methodSevere(Exception, String)
Logs an error message with associated ex.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWarning
Logs a warning message.
Protected methodWriteLog
Writes the supplied log message with specified level.
Public methodWriteMessage
Writes the message to this channel.
Top
See Also