Quantcast
Channel: Photon Server — Photon Engine
Viewing all articles
Browse latest Browse all 1557

Why aren't enums supported as Operation DataMember fields?

$
0
0
Hi,

I like the idea of using enum parameters with a common client-server library. Normally that wouldn't be an issue, but I keep getting this server-side error for Operations that expect enum parameters:

--> "Wrong parameter type 30: should be OutpostType but received Byte. "

I've read that the standard .Net DataContract implementation is supposed to support enums right out of the box:
--> https://msdn.microsoft.com/en-us/library/aa347875(v=vs.110).aspx

So, is it just the Photon implementation that does without enum parameters or am I missing something?

Kind regards,
JS


Viewing all articles
Browse latest Browse all 1557

Trending Articles