C# Class ArgusTV.Recorders.Common.RecordingThreadBase

Inheritance: WorkerThread
Mostra file Open project: ARGUS-TV/ARGUS-TV-Recorders

Public Methods

Method Description
RecordingThreadBase ( System.Guid recorderTunerId, string serverHostName, int serverTcpPort, ArgusTV.DataContracts.CardChannelAllocation channelAllocation, System.DateTime startTimeUtc, System.DateTime stopTimeUtc, ArgusTV.DataContracts.UpcomingProgram recordingProgram, bool okToRenameRecordedFiles ) : System

Protected Methods

Method Description
OnCheckFileSize ( ) : bool
OnCheckRecordingActive ( ) : bool
OnError ( ) : void
OnPrepareRecording ( RecorderCallbackServiceAgent callbackAgent, string &errorMessage ) : bool
OnStartRecording ( RecorderCallbackServiceAgent callbackAgent, string &errorMessage ) : string
OnStopRecording ( RecorderCallbackServiceAgent callbackAgent, bool abort ) : bool
OnThreadEnding ( ) : void
OnWriteLog ( TraceEventType severity, string message ) : void
Run ( ) : void
WriteLog ( TraceEventType severity, string message ) : void
WriteLog ( string message ) : void

Private Methods

Method Description
CallAddNewRecording ( RecorderCallbackServiceAgent callbackAgent, System.DateTime actualStartTimeUtc ) : void
CallEndRecording ( RecorderCallbackServiceAgent callbackAgent, System.DateTime actualStartTimeUtc, System.DateTime actualStopTimeUtc ) : void
CallStartRecordingFailed ( RecorderCallbackServiceAgent callbackAgent, string reason ) : void
SetThreadExecutionState ( EXECUTION_STATE state ) : EXECUTION_STATE

Method Details

OnCheckFileSize() protected method

protected OnCheckFileSize ( ) : bool
return bool

OnCheckRecordingActive() protected method

protected OnCheckRecordingActive ( ) : bool
return bool

OnError() protected abstract method

protected abstract OnError ( ) : void
return void

OnPrepareRecording() protected abstract method

protected abstract OnPrepareRecording ( RecorderCallbackServiceAgent callbackAgent, string &errorMessage ) : bool
callbackAgent RecorderCallbackServiceAgent
errorMessage string
return bool

OnStartRecording() protected abstract method

protected abstract OnStartRecording ( RecorderCallbackServiceAgent callbackAgent, string &errorMessage ) : string
callbackAgent RecorderCallbackServiceAgent
errorMessage string
return string

OnStopRecording() protected abstract method

protected abstract OnStopRecording ( RecorderCallbackServiceAgent callbackAgent, bool abort ) : bool
callbackAgent RecorderCallbackServiceAgent
abort bool
return bool

OnThreadEnding() protected method

protected OnThreadEnding ( ) : void
return void

OnWriteLog() protected abstract method

protected abstract OnWriteLog ( TraceEventType severity, string message ) : void
severity TraceEventType
message string
return void

RecordingThreadBase() public method

public RecordingThreadBase ( System.Guid recorderTunerId, string serverHostName, int serverTcpPort, ArgusTV.DataContracts.CardChannelAllocation channelAllocation, System.DateTime startTimeUtc, System.DateTime stopTimeUtc, ArgusTV.DataContracts.UpcomingProgram recordingProgram, bool okToRenameRecordedFiles ) : System
recorderTunerId System.Guid
serverHostName string
serverTcpPort int
channelAllocation ArgusTV.DataContracts.CardChannelAllocation
startTimeUtc System.DateTime
stopTimeUtc System.DateTime
recordingProgram ArgusTV.DataContracts.UpcomingProgram
okToRenameRecordedFiles bool
return System

Run() protected method

protected Run ( ) : void
return void

WriteLog() protected method

protected WriteLog ( TraceEventType severity, string message ) : void
severity TraceEventType
message string
return void

WriteLog() protected method

protected WriteLog ( string message ) : void
message string
return void