[ https://issues.apache.org/jira/browse/QPID-2589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12879897#action_12879897 ]
Chuck Rolke commented on QPID-2589: ----------------------------------- > If I add the following to the map example: > > byte[] myBytes = new byte[3] { 102, 111, 111}; > content["myBytes"] = byBytes; > > I get a NotImplementedException. Is this a known todo item? In today's code the following mapping is in place: amqp/map - Dictionary<string, object> amqp/list - Collection<object> The syntax you are trying to use is not yet supported. To get your data into the map try: byte[] myBytes = new byte[3] { 102, 111, 111}; Collection<object> cBytes = new Collection<object>(); for (int i=0; i<myBytes.Length; i++) cBytes.Add(myBytes[i]); content["myBytes"] = cBytes; In today's implementation a managed code a Collection<object>, where object items are supported primitive types, gets converted into a C++ Variant::List, and then into an amqp/list to the broker. The syntax you are trying is a fluent way of expressing a list at least for data going into a message and should be considered for inclusion in the message encoder. For received messages, though, the Collection<object> works better as items in an amqp/list may be of mixed types. > Add a .NET binding to QPID Messaging API > ---------------------------------------- > > Key: QPID-2589 > URL: https://issues.apache.org/jira/browse/QPID-2589 > Project: Qpid > Issue Type: New Feature > Components: C++ Client > Affects Versions: 0.7 > Environment: Windows > Reporter: Chuck Rolke > Assignee: Ted Ross > Fix For: 0.7 > > Attachments: cpp_binding_dotnet.patch, > cpp_bindings_qpid_dotnet__cleanup.patch, > cpp_bindings_qpid_dotnet_update.patch, > cpp_bindings_qpid_dotnet_vb-helloworld-uuid.patch, map_receiver_update.patch, > qpid_add_x86_platform.patch, qpid_bindings.diff > > > This binding package is a .NET Interop wrapper around the Qpid Messaging > interface. It exposes the Messaging interface through a series of managed > code classes that may be used by any .NET language. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:dev-subscr...@qpid.apache.org