- According to the UnsupportedTypes defined in
MessageHandler.cs, the following types are currently not supported as values for the data argument in publish:
private static readonly Type[] UnsupportedTypes =
{
typeof(short), typeof(int), typeof(double), typeof(float), typeof(decimal), typeof(DateTime), typeof(DateTimeOffset), typeof(byte), typeof(bool),
typeof(long), typeof(uint), typeof(ulong), typeof(ushort), typeof(sbyte),
};
-
As a result, the following calls will fail:
channel.PublishAsync("test", true);
channel.PublishAsync("test", 10);
channel.PublishAsync("test", 10.4);
-
These types are accepted in ably-js and other client libraries, so we should explore how to align .NET behavior accordingly in the near future.
MessageHandler.cs, the following types are currently not supported as values for thedataargument inpublish:As a result, the following calls will fail:
channel.PublishAsync("test", true);channel.PublishAsync("test", 10);channel.PublishAsync("test", 10.4);These types are accepted in
ably-jsand other client libraries, so we should explore how to align .NET behavior accordingly in the near future.