-
Notifications
You must be signed in to change notification settings - Fork 34
Closed
Labels
ClientImprovements or additions to the client codeImprovements or additions to the client code
Milestone
Description
We have started to share datamodel classes between server and client in our project, but to make it work I had to change this method in the ServiceSerializer class because the Version column on the client side is now of type byte[] like on the server side:
public static string GetVersion(JObject instance)
{
foreach (JProperty property in instance.Properties())
{
if (string.Equals(property.Name, SystemProperties.JsonVersionProperty, StringComparison.OrdinalIgnoreCase))
{
return JsonConvert.SerializeObject(instance.Value<byte[]>(property.Name)).Replace("\"", "");
}
}
return null;
}
It would be great if the new version of the library allowed this, so that the same classes could be reused between server and client.
RaoulHolzer and JustAnotherLarsJustAnotherLarsJustAnotherLars
Metadata
Metadata
Assignees
Labels
ClientImprovements or additions to the client codeImprovements or additions to the client code