public interface ITcpDmtpService : ITcpDmtpService<TcpDmtpSessionClient>,
ITcpDmtpServiceBase, ITcpServiceBase, IConnectableService, IServiceBase, ISetupConfigObject,
IResolverConfigObject, IConfigObject, IDependencyObject, IDisposableObject, IDisposable,
ILoggerObject, IPluginObject, IResolverObject, IDmtpService, ITcpServiceBase<TcpDmtpSessionClient>,
IConnectableService<TcpDmtpSessionClient>
Public Interface ITcpDmtpService
Inherits ITcpDmtpService(Of TcpDmtpSessionClient), ITcpDmtpServiceBase, ITcpServiceBase,
IConnectableService, IServiceBase, ISetupConfigObject, IResolverConfigObject, IConfigObject,
IDependencyObject, IDisposableObject, IDisposable, ILoggerObject, IPluginObject,
IResolverObject, IDmtpService, ITcpServiceBase(Of TcpDmtpSessionClient), IConnectableService(Of TcpDmtpSessionClient)
type ITcpDmtpService =
interface
interface ITcpDmtpService<TcpDmtpSessionClient>
interface ITcpDmtpServiceBase
interface ITcpServiceBase
interface IConnectableService
interface IServiceBase
interface ISetupConfigObject
interface IResolverConfigObject
interface IConfigObject
interface IDependencyObject
interface IDisposableObject
interface IDisposable
interface ILoggerObject
interface IPluginObject
interface IResolverObject
interface IDmtpService
interface ITcpServiceBase<TcpDmtpSessionClient>
interface IConnectableService<TcpDmtpSessionClient>
end
Clients |
获取已连接的客户端集合。
(继承自 IConnectableServiceTClient。) |
Config |
配置项
(继承自 IConfigObject。) |
Count |
获取已连接的客户端数量
(继承自 IConnectableService。) |
DisposedValue |
标识该对象是否已被释放
(继承自 IDisposableObject。) |
Logger |
日志记录器
(继承自 ILoggerObject。) |
MaxCount |
获取已配置的最大可连接数量
(继承自 IConnectableService。) |
Monitors |
网络监听集合
(继承自 ITcpServiceBase。) |
PluginManager |
插件管理器
(继承自 IPluginObject。) |
Resolver |
获取解析器实例。
(继承自 IResolverObject。) |
ServerName |
服务器名称
(继承自 IServiceBase。) |
ServerState |
服务器状态
(继承自 IServiceBase。) |
AddListen |
添加一个地址监听。支持在服务器运行过程中动态添加。
(继承自 ITcpServiceBase。) |
ClearAsync |
清理(断开)已连接的所有客户端
(继承自 IConnectableService。) |
ClientExists |
根据Id判断对应的客户端是否存在
(继承自 IConnectableService。) |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (继承自 IDisposable。) |
GetClients |
获取已连接的所有客户端。
(继承自 IConnectableService。) |
GetIds |
获取已连接的所有客户端Id集合
(继承自 IConnectableService。) |
GetValueTValue |
获取依赖注入的值,当没有注入时,会返回默认行为的值。
(继承自 IDependencyObject。) |
HasValueTValue |
判断在当前对象中是否有已设置的属性值。
(继承自 IDependencyObject。) |
RemoveListen |
移除一个地址监听。支持在服务器运行过程中动态移除。
(继承自 ITcpServiceBase。) |
RemoveValueTValue |
移除属性值。
(继承自 IDependencyObject。) |
ResetIdAsync |
重置指定客户端的Id
(继承自 IConnectableService。) |
SetupAsync |
异步配置设置项
(继承自 ISetupConfigObject。) |
SetValueTValue |
设置依赖注入的值,如果值已经存在,将被覆盖。
(继承自 IDependencyObject。) |
StartAsync |
异步启动
(继承自 IServiceBase。) |
StopAsync |
异步停止
(继承自 IServiceBase。) |
TryGetValueTValue |
尝试获取依赖注入的值,当没有注入时,会返回。
(继承自 IDependencyObject。) |
TryRemoveValueTValue |
尝试重置属性值,如果没有这个值,则返回。
(继承自 IDependencyObject。) |
GetClientTcpDmtpSessionClient |
从连接服务中获取指定ID的客户端。
(由 ServiceExtension 定义。) |
SafeDispose |
安全性释放(不用判断对象是否为空)。不会抛出任何异常。
内部会判断DisposedValue的值,如果为,则不会再执行Dispose。 (由 SystemExtension 定义。) |
SafeDispose |
安全性释放(不用判断对象是否为空)。不会抛出任何异常。
(由 SystemExtension 定义。) |
Setup |
同步配置方法。
使用给定的配置对象进行设置。
(由 SetupConfigObjectExtension 定义。) |
TryGetClientTcpDmtpSessionClient |
尝试从可连接服务中获取与指定ID匹配的客户端。
(由 ServiceExtension 定义。) |