public void Open() { EndpointForDidResult result = DidAsync.GetEndpointForDidAsync(_pool, _wallet, Did).Result; Address = result.Address; TransportKey = result.TransportKey; }
private static void GetEndpointForDidCompletedCallbackMethod(int xcommand_handle, int err, string endpoint, string transport_vk) { var taskCompletionSource = PendingCommands.Remove <EndpointForDidResult>(xcommand_handle); if (!CallbackHelper.CheckCallback(taskCompletionSource, err)) { return; } var result = new EndpointForDidResult(endpoint, transport_vk); taskCompletionSource.SetResult(result); }