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(); }
public void ContextAndPocoInZeroOut(CustomerPoco poco, ILambdaContext context) { Common.LogCommonData("ContextAndPocoInZeroOut", poco.Data, context); }
public void PocoInZeroOut(CustomerPoco data) { Common.LogCommonData("PocoInZeroOut", data.Data); }
public CustomerPoco PocoInPocoOut(CustomerPoco data) { Common.LogCommonData("PocoInPocoOut", data.Data); return(new CustomerPoco("(([PocoInPocoOut]))")); }
public CustomerPoco ContextAndPocoInPocoOut(CustomerPoco data, ILambdaContext context) { Common.LogCommonData("ContextAndPocoInPocoOut", data.Data, context); return(new CustomerPoco("(([ContextAndPocoInPocoOut]))")); }