c# Programming Glossary: basemessage
Deserialize unknown type with protobuf-net http://stackoverflow.com/questions/675349/deserialize-unknown-type-with-protobuf-net the serialized byte array from the network. Messages.BaseMessage message ProtoBuf.Serializer.Deserialize Messages.BaseMessage.. message ProtoBuf.Serializer.Deserialize Messages.BaseMessage ms I am passing a header before the serialized bytes that contains.. t message method.Invoke null new object ms as Messages.BaseMessage Here's the function I use to send a message over the network..
Passing object messages in Azure Queue Storage http://stackoverflow.com/questions/8550702/passing-object-messages-in-azure-queue-storage classes as example Serializable public abstract class BaseMessage public byte ToBinary BinaryFormatter bf new BinaryFormatter.. that is strongly typed public class StdQueue T where T BaseMessage new protected CloudQueue queue public StdQueue CloudQueue queue.. 120 Then all you have to do is to inherit the BaseMessage Serializable public class ParseTaskMessage BaseMessage public..
|