コード例 #1
0
ファイル: RequestServiceImpl.cs プロジェクト: 2garryn/wpay
        public async Task Create(Publisher publisher)
        {
            var g = Guid.NewGuid();

            Console.WriteLine($"Start conversation with {g}");
            await publisher.Command <ResponseServiceDefinition, CreateCommand>(new CreateCommand()
            {
                Name   = "Some name",
                Amount = 5
            }, ps => ps.ConversationId = g);
        }