Пример #1
0
 private MobileSpeechRequestStatisticsLogger.MobileSpeechRequestStatisticsLogRow CollectStatisticsLog(MobileSpeechRecoRequestStepLogId requestStepId, int audioLength)
 {
     return(new MobileSpeechRequestStatisticsLogger.MobileSpeechRequestStatisticsLogRow
     {
         RequestId = this.Parameters.RequestId,
         StartTime = ExDateTime.UtcNow,
         RequestType = new MobileSpeechRecoRequestType?(this.Parameters.RequestType),
         Tag = this.Parameters.Tag,
         TenantGuid = new Guid?(this.Parameters.TenantGuid),
         UserObjectGuid = new Guid?(this.Parameters.UserObjectGuid),
         TimeZone = this.Parameters.TimeZone.Id,
         RequestStepId = new MobileSpeechRecoRequestStepLogId?(requestStepId),
         AudioLength = audioLength,
         LogOrigin = new MobileSpeechRecoLogStatisticOrigin?(MobileSpeechRecoLogStatisticOrigin.CAS)
     });
 }
Пример #2
0
 protected void CollectAndLogStatisticsInformation(MobileSpeechRecoRequestStepLogId requestStepId, int audioLength)
 {
     ExTraceGlobals.SpeechRecognitionTracer.TraceDebug <MobileSpeechRecoRequestStepLogId, int>((long)this.GetHashCode(), "CollectAndLogStatisticsInformation with RequestStepId='{0}', audioLength:'{1}'", requestStepId, audioLength);
     MobileSpeechRequestStatisticsLogger.MobileSpeechRequestStatisticsLogRow row = this.CollectStatisticsLog(requestStepId, audioLength);
     SpeechRecognitionHandler.MobileSpeechRequestStatisticsLogger.Append(row);
 }