C# Class Cgw.External.GatewayExternal

Inheritance: IGatewayExternal, IServiceBehavior
Show file Open project: eSDK/esdk_Cgw Class Usage Examples

Public Properties

Property Type Description
log NLog.Logger

Public Methods

Method Description
AddBindingParameters ( System.ServiceModel.Description.ServiceDescription serviceDescription, ServiceHostBase serviceHostBase, System endpoints, System.ServiceModel.Channels.BindingParameterCollection bindingParameters ) : void
ApplyDispatchBehavior ( System.ServiceModel.Description.ServiceDescription serviceDescription, ServiceHostBase serviceHostBase ) : void
AssignMonitorChannel ( List ChannelInfoList ) : SmcErr

分配监控通道

Connect ( string password ) : SmcErr

连接融合网关

DisConnect ( ) : SmcErr

断开融合网关

InitService ( ) : void

初始化融合网管服务

Instance ( ) : GatewayExternal

构造函数 单例模式实例

KeepAliver ( ) : SmcErr

保持连接

MuteCamera ( ) : SmcErr

摄像头闭音(暂无)

QueryLisence ( int &numLisence ) : SmcErr

查询Lisence控制项(暂无)

QueryMonitorCamera ( List &CameraInfoList, List &CameraGroupList, List &nodeRelationList ) : SmcErr

获取监控设备列表

StartControlPtz ( string cameraNo, PtzCommandType ptzCommand, int param ) : SmcErr

开始PTZ操作

StopPTZ ( string Camerano ) : SmcErr

关闭PTZ操作

SwitchChannelVideoSource ( string channelLabel, string cameraNo ) : SmcErr

设置监控通道视频源

SyncMonitorChannel ( List ChannelInfoList ) : SmcErr

同步通道信息

Validate ( System.ServiceModel.Description.ServiceDescription serviceDescription, ServiceHostBase serviceHostBase ) : void

Private Methods

Method Description
CheckSession ( ) : SmcErr

检查Session

Method Details

AddBindingParameters() public method

public AddBindingParameters ( System.ServiceModel.Description.ServiceDescription serviceDescription, ServiceHostBase serviceHostBase, System endpoints, System.ServiceModel.Channels.BindingParameterCollection bindingParameters ) : void
serviceDescription System.ServiceModel.Description.ServiceDescription
serviceHostBase ServiceHostBase
endpoints System
bindingParameters System.ServiceModel.Channels.BindingParameterCollection
return void

ApplyDispatchBehavior() public method

public ApplyDispatchBehavior ( System.ServiceModel.Description.ServiceDescription serviceDescription, ServiceHostBase serviceHostBase ) : void
serviceDescription System.ServiceModel.Description.ServiceDescription
serviceHostBase ServiceHostBase
return void

AssignMonitorChannel() public method

分配监控通道
public AssignMonitorChannel ( List ChannelInfoList ) : SmcErr
ChannelInfoList List
return Cgw.SmcError.SmcErr

Connect() public method

连接融合网关
public Connect ( string password ) : SmcErr
password string 连接字符串
return Cgw.SmcError.SmcErr

DisConnect() public method

断开融合网关
public DisConnect ( ) : SmcErr
return Cgw.SmcError.SmcErr

InitService() public method

初始化融合网管服务
public InitService ( ) : void
return void

Instance() public static method

构造函数 单例模式实例
public static Instance ( ) : GatewayExternal
return GatewayExternal

KeepAliver() public method

保持连接
public KeepAliver ( ) : SmcErr
return Cgw.SmcError.SmcErr

MuteCamera() public method

摄像头闭音(暂无)
public MuteCamera ( ) : SmcErr
return Cgw.SmcError.SmcErr

QueryLisence() public method

查询Lisence控制项(暂无)
public QueryLisence ( int &numLisence ) : SmcErr
numLisence int
return Cgw.SmcError.SmcErr

QueryMonitorCamera() public method

获取监控设备列表
public QueryMonitorCamera ( List &CameraInfoList, List &CameraGroupList, List &nodeRelationList ) : SmcErr
CameraInfoList List 摄像头基本信息
CameraGroupList List 组基本信息
nodeRelationList List 所属分组关系信息
return Cgw.SmcError.SmcErr

StartControlPtz() public method

开始PTZ操作
public StartControlPtz ( string cameraNo, PtzCommandType ptzCommand, int param ) : SmcErr
cameraNo string 摄像头NO
ptzCommand PtzCommandType 操作类型
param int 命令参数
return Cgw.SmcError.SmcErr

StopPTZ() public method

关闭PTZ操作
public StopPTZ ( string Camerano ) : SmcErr
Camerano string 摄像头
return Cgw.SmcError.SmcErr

SwitchChannelVideoSource() public method

设置监控通道视频源
public SwitchChannelVideoSource ( string channelLabel, string cameraNo ) : SmcErr
channelLabel string 通道label
cameraNo string 摄像头NO
return Cgw.SmcError.SmcErr

SyncMonitorChannel() public method

同步通道信息
public SyncMonitorChannel ( List ChannelInfoList ) : SmcErr
ChannelInfoList List 通道列表
return Cgw.SmcError.SmcErr

Validate() public method

public Validate ( System.ServiceModel.Description.ServiceDescription serviceDescription, ServiceHostBase serviceHostBase ) : void
serviceDescription System.ServiceModel.Description.ServiceDescription
serviceHostBase ServiceHostBase
return void

Property Details

log public static property

记录日志操作类.
public static NLog.Logger log
return NLog.Logger