public async void IndivReactively(PlayReadyIndividualizationServiceRequest indivRequest) { Debug.WriteLine("Enter Indiv.IndivReactively()"); Exception exception = null; try { _serviceRequest = indivRequest; SerivceRequestStatistics.IncIndivCount(); Debug.WriteLine("Begin indiv service request..."); await indivRequest.BeginServiceRequest(); } catch (Exception ex) { Debug.WriteLine("Saving exception.."); exception = ex; } finally { IndivServiceRequestCompleted(indivRequest, exception); } Debug.WriteLine("Leave Indiv.IndivReactively()"); }
async public void AcquireLicenseReactively(IPlayReadyLicenseAcquisitionServiceRequest licenseRequest) { Debug.WriteLine("Enter LicenseAcquisition.AcquireLicenseReactively()"); Exception exception = null; try { _serviceRequest = licenseRequest; ConfigureServiceRequest(); SerivceRequestStatistics.IncLicenseAcquisitionCount(); Debug.WriteLine("ChallengeCustomData = " + licenseRequest.ChallengeCustomData); if (RequestConfigData.ManualEnabling) { Debug.WriteLine("Manually posting the request..."); HttpHelper httpHelper = new HttpHelper(licenseRequest, customHeaders); await httpHelper.GenerateChallengeAndProcessResponse(); } else { Debug.WriteLine("Begin license acquisition service request..."); await licenseRequest.BeginServiceRequest(); } Debug.WriteLine("Post-LicenseAcquisition Values:"); Debug.WriteLine("DomainServiceId = " + licenseRequest.DomainServiceId.ToString()); DumpContentHeaderValues(licenseRequest.ContentHeader); } catch (Exception ex) { Debug.WriteLine("Saving exception.. " + ex.ToString()); exception = ex; } finally { if (exception == null) { Debug.WriteLine("ResponseCustomData = " + licenseRequest.ResponseCustomData); } LAServiceRequestCompleted(licenseRequest, exception); } Debug.WriteLine("Leave LicenseAcquisition.AcquireLicenseReactively()"); }