コード例 #1
0
        public void Open()
        {
            EndpointForDidResult result = DidAsync.GetEndpointForDidAsync(_pool, _wallet, Did).Result;

            Address      = result.Address;
            TransportKey = result.TransportKey;
        }
コード例 #2
0
ファイル: Async.cs プロジェクト: tatmanblue/IndyDotNet
        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);
        }