Skip to content

[winmd servicebus] custom message properties as date throws InvalidCastException #18

@deepakverma

Description

@deepakverma

Winmd code: var messagesend = BrokeredMessageSettings.CreateFromText("test/xml","this is my message");
messagesend.Properties["orderid"] = new DateTime();
sb.SendMessageAsync("test", messagesend).AsTask().Wait();

invalid cast is thrown by
https://github.com/WindowsAzure/azure-sdk-for-net/blob/dev/microsoft-azure-servicelayer/Microsoft.WindowsAzure.ServiceLayer/ServiceBus/CustomPropertiesDictionary.cs
datetime cast needs to be added to the encode and decode function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions