C# 클래스 Cgw.Service.CgwService

상속: ICgwService, IServiceBehavior
파일 보기 프로젝트 열기: eSDK/esdk_Cgw 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
log NLog.Logger

공개 메소드들

메소드 설명
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
Connect ( string cgwPwd ) : SmcErr

连接融合网关

Disconnect ( ) : SmcErr

断开融合网关

DisconnectMonitor ( ) : SmcErr

Disconnect monitorPlat

GetRefreshStatus ( SmcErr &refreshStatus ) : SmcErr

获取监控摄像头列表刷新状态,返回结果为0是表示刷新完毕,为1是刷新操作中。当查询刷新状态为0时,可调用获取监控摄像头列表接口,获取刷新后监控摄像头列表

GetSipPort ( uint &sipPort ) : SmcErr

获取软终端被叫sip端口号

ImportCGWLicense ( string license ) : SmcErr

导入网关license文件

InitService ( ) : SmcErr

初始化融合网管服务

Instance ( ) : CgwService

构造函数 单例模式实例

KeepAliver ( ) : SmcErr

保持连接

LicenseInit ( ) : void

LicenseInit

Load ( ) : SmcErr

线程加载cgw

QueryMonitorCamera ( PlatformType platformType, PageParam pageParam, List &cameraInfoList, List &cameraGroupList, List &nodeRelationList, PagesInfo &pagesInfo ) : SmcErr

获取监控设备列表

RefreshMonitorCamera ( ) : SmcErr

刷新监控摄像头列表

SetMic ( string channelLabel, string cameraNo, bool isOn ) : SmcErr

设置麦克风

SetSpeaker ( string channelLabel, string cameraNo, bool isOn ) : SmcErr

设置扬声器

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

开始PTZ操作

StopAllStream ( ) : SmcErr

线程Unload cgw

StopControlPtz ( string cameraNo, PtzCommandType ptzCommandType ) : SmcErr

关闭PTZ操作

SwitchChannelVideoSource ( string channelLabel, string cameraNo ) : SmcErr

设置监控通道视频源

SyncMonitorChannel ( List &channelInfoList ) : SmcErr

同步通道信息

UpdateMonitorChannel ( List channelInfoList ) : SmcErr

分配监控通道

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

비공개 메소드들

메소드 설명
CgwService ( ) : System

単例的构造函数

CheckSession ( ) : SmcErr

检查Session

메소드 상세

AddBindingParameters() 공개 메소드

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
리턴 void

ApplyDispatchBehavior() 공개 메소드

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

Connect() 공개 메소드

连接融合网关
public Connect ( string cgwPwd ) : SmcErr
cgwPwd string 连接字符串
리턴 Cgw.SmcError.SmcErr

Disconnect() 공개 메소드

断开融合网关
public Disconnect ( ) : SmcErr
리턴 Cgw.SmcError.SmcErr

DisconnectMonitor() 공개 메소드

Disconnect monitorPlat
public DisconnectMonitor ( ) : SmcErr
리턴 Cgw.SmcError.SmcErr

GetRefreshStatus() 공개 메소드

获取监控摄像头列表刷新状态,返回结果为0是表示刷新完毕,为1是刷新操作中。当查询刷新状态为0时,可调用获取监控摄像头列表接口,获取刷新后监控摄像头列表
public GetRefreshStatus ( SmcErr &refreshStatus ) : SmcErr
refreshStatus Cgw.SmcError.SmcErr
리턴 Cgw.SmcError.SmcErr

GetSipPort() 공개 메소드

获取软终端被叫sip端口号
public GetSipPort ( uint &sipPort ) : SmcErr
sipPort uint
리턴 Cgw.SmcError.SmcErr

ImportCGWLicense() 공개 메소드

导入网关license文件
public ImportCGWLicense ( string license ) : SmcErr
license string
리턴 Cgw.SmcError.SmcErr

InitService() 공개 메소드

初始化融合网管服务
public InitService ( ) : SmcErr
리턴 Cgw.SmcError.SmcErr

Instance() 공개 정적인 메소드

构造函数 单例模式实例
public static Instance ( ) : CgwService
리턴 CgwService

KeepAliver() 공개 메소드

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

LicenseInit() 공개 메소드

LicenseInit
public LicenseInit ( ) : void
리턴 void

Load() 공개 메소드

线程加载cgw
public Load ( ) : SmcErr
리턴 Cgw.SmcError.SmcErr

QueryMonitorCamera() 공개 메소드

获取监控设备列表
public QueryMonitorCamera ( PlatformType platformType, PageParam pageParam, List &cameraInfoList, List &cameraGroupList, List &nodeRelationList, PagesInfo &pagesInfo ) : SmcErr
platformType PlatformType
pageParam Cgw.Common.PageParam
cameraInfoList List
cameraGroupList List
nodeRelationList List 所属分组关系信息
pagesInfo Cgw.Common.PagesInfo
리턴 Cgw.SmcError.SmcErr

RefreshMonitorCamera() 공개 메소드

刷新监控摄像头列表
public RefreshMonitorCamera ( ) : SmcErr
리턴 Cgw.SmcError.SmcErr

SetMic() 공개 메소드

设置麦克风
public SetMic ( string channelLabel, string cameraNo, bool isOn ) : SmcErr
channelLabel string
cameraNo string
isOn bool
리턴 Cgw.SmcError.SmcErr

SetSpeaker() 공개 메소드

设置扬声器
public SetSpeaker ( string channelLabel, string cameraNo, bool isOn ) : SmcErr
channelLabel string
cameraNo string
isOn bool
리턴 Cgw.SmcError.SmcErr

StartControlPtz() 공개 메소드

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

StopAllStream() 공개 메소드

线程Unload cgw
public StopAllStream ( ) : SmcErr
리턴 Cgw.SmcError.SmcErr

StopControlPtz() 공개 메소드

关闭PTZ操作
public StopControlPtz ( string cameraNo, PtzCommandType ptzCommandType ) : SmcErr
cameraNo string
ptzCommandType PtzCommandType
리턴 Cgw.SmcError.SmcErr

SwitchChannelVideoSource() 공개 메소드

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

SyncMonitorChannel() 공개 메소드

同步通道信息
public SyncMonitorChannel ( List &channelInfoList ) : SmcErr
channelInfoList List
리턴 Cgw.SmcError.SmcErr

UpdateMonitorChannel() 공개 메소드

分配监控通道
public UpdateMonitorChannel ( List channelInfoList ) : SmcErr
channelInfoList List
리턴 Cgw.SmcError.SmcErr

Validate() 공개 메소드

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

프로퍼티 상세

log 공개적으로 정적으로 프로퍼티

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