Exemplo n.º 1
0
    /// <summary>
    /// REST Get method
    /// </summary>
    /// <param name="requestPayload">String containing a base64 serialized MyProtobufRequest object</param>
    /// <returns>String containing a base64 serialized MyProtobufReply object</returns>
    public string Get(string requestPayload)
    {
        var requestObj = ProtobufHelper.DeserializeProtobuf <MyProtobufRequest>(requestPayload);

        return(ProtobufHelper.SerializeProtobuf(GetHandler(requestObj)));
    }