void HandleIndivServiceRequest(PlayReadyIndividualizationServiceRequest serviceRequest) { TestLogger.LogMessage(" "); TestLogger.LogMessage("Enter RequestChain.HandleIndivServiceRequest()"); _indivAndReportResult = new IndivAndReportResult(new ReportResultDelegate(HandleServiceRequest_Finished)); _indivAndReportResult.RequestConfigData = _requestConfigData; _indivAndReportResult.IndivReactively(serviceRequest); TestLogger.LogMessage("Leave RequestChain.HandleIndivServiceRequest()"); }
/// <summary> /// Perform proactive individualizatrion (indiv) if it hasn't been performed yet. /// An app should do indiv only when it is necessary. To check whether the device indiv'd /// or not the app can get the PlayReady security version. There will be an exception if it /// hasn't indiv'd yet. /// </summary> private void Indiv_Tapped(object sender, RoutedEventArgs e) { // If the individualization hasn't been performed getting the // security version will cause exception. try { uint secVersion = PlayReadyStatics.PlayReadySecurityVersion; TextBlock indivResultElement = (TextBlock)FindName(IsPhone ? "abIndivResultOnAppBar" : "abIndivResult"); if (indivResultElement != null) { indivResultElement.Text = "Individualized already"; } } catch (Exception) { // Start indiv Indiv indivSR = new IndivAndReportResult(new ReportResultDelegate(IndivCompleted)); indivSR.IndivProactively(); } finally { UpdateIndivState(); }; }
public void Test_Indiv() { _indiv = new IndivAndReportResult(new ReportResultDelegate(TestActionFinished)); _indiv.IndivProactively(); }