public T Deserialize <T>(Stream requestStream)
        {
            var type = typeof(T);

            if (type == typeof(CustomerPoco))
            {
                object poco = new CustomerPoco(Common.GetString(requestStream));
                return((T)poco);
            }
            if (type == typeof(CustomerPocoIn))
            {
                object poco = new CustomerPocoIn(Common.GetString(requestStream));
                return((T)poco);
            }
            if (type == typeof(CustomerPocoOut))
            {
                object poco = new CustomerPocoOut(Common.GetString(requestStream));
                return((T)poco);
            }

            throw new InvalidCastException();
        }
Example #2
0
 public void ContextAndPocoInZeroOut(CustomerPoco poco, ILambdaContext context)
 {
     Common.LogCommonData("ContextAndPocoInZeroOut", poco.Data, context);
 }
Example #3
0
 public void PocoInZeroOut(CustomerPoco data)
 {
     Common.LogCommonData("PocoInZeroOut", data.Data);
 }
Example #4
0
 public CustomerPoco PocoInPocoOut(CustomerPoco data)
 {
     Common.LogCommonData("PocoInPocoOut", data.Data);
     return(new CustomerPoco("(([PocoInPocoOut]))"));
 }
Example #5
0
 public CustomerPoco ContextAndPocoInPocoOut(CustomerPoco data, ILambdaContext context)
 {
     Common.LogCommonData("ContextAndPocoInPocoOut", data.Data, context);
     return(new CustomerPoco("(([ContextAndPocoInPocoOut]))"));
 }