public IConsumedMethodReference CreateConsumedMethodReference(IConsumedServiceReference consumedService, string methodId) { var obj = ConsumedMethodReference.Rent(); obj.ConsumedService = consumedService; obj.MethodId = methodId; return(obj); }
private static ConsumedMethodReference ConvertToProtoStrict(IConsumedMethodReference obj) { var proto = ConsumedMethodReference.Rent(); proto.ConsumedService = ConvertToProtoStrict(obj.ConsumedService); proto.MethodId = obj.MethodId.ConvertToProtoStrict(); return(proto); }
private IConsumedMethodReference ConvertFromProtoStrict(ConsumedMethodReference proto) { return(_messageFactory.CreateConsumedMethodReference( ConvertFromProtoStrict(proto.ConsumedService), proto.MethodId.ConvertFromProtoStrict())); }
private Maybe <IConsumedMethodReference> ConvertFromProto(ConsumedMethodReference proto) { return(proto == null ? Maybe <IConsumedMethodReference> .Nothing : new Maybe <IConsumedMethodReference>(ConvertFromProtoStrict(proto))); }