// Token: 0x06001CD7 RID: 7383 RVA: 0x000737A4 File Offset: 0x000719A4 protected static RequestParameters CreateRequestParameters(MobileSpeechRecoRequestType requestType, RequestParameters requestParameters) { Guid requestId = Guid.NewGuid(); ExTraceGlobals.SpeechRecognitionTracer.TraceDebug <string, string, string>(0L, "Requested Id Guid:'{0}' created for Request Type:'{1}', Parameter Tag:'{2}'", requestId.ToString(), requestType.ToString(), requestParameters.Tag); return(new RequestParameters(requestId, requestParameters.Tag, requestType, requestParameters.Culture, requestParameters.TimeZone, requestParameters.UserObjectGuid, requestParameters.TenantGuid, requestParameters.OrgId)); }
// Token: 0x06001D27 RID: 7463 RVA: 0x00074550 File Offset: 0x00072750 public RequestParameters(Guid requestId, string tag, MobileSpeechRecoRequestType requestType, CultureInfo culture, ExTimeZone timeZone, Guid userObjectGuid, Guid tenantGuid, OrganizationId orgId) { this.RequestId = requestId; this.Tag = tag; this.RequestType = requestType; this.Culture = culture; this.TimeZone = timeZone; this.UserObjectGuid = userObjectGuid; this.TenantGuid = tenantGuid; this.OrgId = orgId; }
// Token: 0x06001D59 RID: 7513 RVA: 0x00074FA0 File Offset: 0x000731A0 private static void GetQueryStringParameters(HttpRequest request, out string tag, out MobileSpeechRecoRequestType requestType, out CultureInfo culture, out ExTimeZone timeZone) { ExTraceGlobals.SpeechRecognitionTracer.TraceDebug(0L, "Entering SpeechRecognitionProcessor.GetQueryStringParameters"); NameValueCollection queryString = request.QueryString; string text = queryString["tag"]; string text2 = queryString["operation"]; string text3 = queryString["culture"]; string text4 = queryString["timezone"]; if (string.IsNullOrEmpty(text)) { throw new ArgumentOutOfRangeException("tag", "Parameter was not specified"); } tag = text; if (string.IsNullOrEmpty(text4)) { throw new ArgumentOutOfRangeException("timezone", "Parameter was not specified"); } if (!ExTimeZoneEnumerator.Instance.TryGetTimeZoneByName(text4, out timeZone)) { throw new ArgumentOutOfRangeException("timezone", text4, "Invalid parameter"); } if (text2 == null) { throw new ArgumentOutOfRangeException("operation", "Parameter was not specified"); } if (!EnumValidator.TryParse <MobileSpeechRecoRequestType>(text2, EnumParseOptions.IgnoreCase, out requestType)) { throw new ArgumentOutOfRangeException("operation", text2, "Invalid parameter"); } if (text3 == null) { throw new ArgumentOutOfRangeException("culture", "Parameter was not specified"); } try { culture = new CultureInfo(text3); } catch (ArgumentException ex) { throw new ArgumentOutOfRangeException("culture", text3, ex.Message); } }