public static void EnableDebugWindowsStoreProxy(LicenseChangedHandler licenseChangedHandler, string windowsStoreProxy) { #if NETFX_CORE if (licenseChangedHandler != null) { LicenseChangedEventHandler licenseChangedEventHandler = new LicenseChangedEventHandler(licenseChangedHandler); CurrentAppSimulator.LicenseInformation.LicenseChanged += licenseChangedEventHandler; } WriteWindowsStoreProxyFileAsync(windowsStoreProxy); #endif }
public static void EnableDebugWindowsStoreProxy(LicenseChangedHandler licenseChangedHandler, DebugApp debugApp, params DebugProduct[] debugProducts) { #if NETFX_CORE XElement proxyXML = SerializeStoreProxyToXML(debugApp, debugProducts); using (StringWriter proxyXMLWriter = new StringWriter()) { proxyXML.Save(proxyXMLWriter, SaveOptions.DisableFormatting); EnableDebugWindowsStoreProxy(licenseChangedHandler, proxyXMLWriter.ToString()); } #endif }