Ejemplo n.º 1
0
        public void Open()
        {
            EndpointForDidResult result = DidAsync.GetEndpointForDidAsync(_pool, _wallet, Did).Result;

            Address      = result.Address;
            TransportKey = result.TransportKey;
        }
Ejemplo n.º 2
0
        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);
        }