public void TestAppendVisitorInfoForUrl_Returns_AppendedUrl() { // setup Thread.Sleep(1000); CountdownEvent latch = new CountdownEvent(2); string urlString = null; string ecid = null; string orgid = new NSString("972C898555E9F7BC7F000101%40AdobeOrg"); NSUrl url = new NSUrl("https://test.com"); // test ACPIdentity.GetExperienceCloudId(ecidCallback => { ecid = ecidCallback.ToString(); latch.Signal(); ACPIdentity.AppendToUrl(url, callback => { urlString = callback.ToString(); latch.Signal(); }); }); latch.Wait(); latch.Dispose(); // verify Assert.That(urlString, Is.StringContaining(url.ToString())); Assert.That(urlString, Is.StringContaining(ecid)); Assert.That(urlString, Is.StringContaining(orgid)); }
partial void AppendVisitorInfoForUrl(UIButton sender) { var callback = new Action <NSUrl>(handleCallback); var url = new NSUrl("https://example.com"); ACPIdentity.AppendToUrl(url, callback); Console.WriteLine("AppendVisitorInfoForUrl Completed"); }
public TaskCompletionSource <string> AppendVisitorInfoForUrl() { stringOutput = new TaskCompletionSource <string>(); var callback = new Action <NSUrl>(handleCallback); var url = new NSUrl("https://example.com"); ACPIdentity.AppendToUrl(url, callback); stringOutput.SetResult(""); return(stringOutput); }
void appendToUrl() { ACPIdentity.AppendToUrl("visitorId", HandleAdobeIdentityAppendToUrlCallback); }