Esempio n. 1
0
        public void RegisterAgent(MockAgent agent)
        {
            Func <(string name, byte[] data), Task <byte[]> > function = async(cb) => await agent.HandleInboundAsync(new MessageContext(cb.data, true));

            _agentInBoundCallBacks.Add((agent.Name, function));
        }
Esempio n. 2
0
 public static async Task Dispose(MockAgent agent)
 {
     agent.Context.Wallet.Dispose();
     await agent.Context.Wallet.CloseAsync();
 }