public TransferContext(TransferCollection collection) { Request = new TransferRequest(collection); Response = new TransferResponse(collection); Context = this; }
public TransferRequest(TransferCollection collection) { _collection = collection; }
public TransferResponse(TransferCollection collection) { _collection = collection; }
/// <summary> /// 内容会以二进制转为字符串的形式传值, /// 通过profocal协议传输具体字段 /// content包含当前对象的所有值 /// 此方法内不做任何字段处理,只保存在dictionary中 /// </summary> /// <param name="content"></param> public TransferApplication(String content) { _TransferCollection = JsonConvert.DeserializeObject <TransferCollection>(content); }