public void ClearAll() { ifVerify = false; elaborationLevel = ChainLevel.UNSPECIFIED; autoChain = false; routingObjects.Clear(); payloadObjects.Clear(); }
public Request(RequestType type, string uri, DateTime expiry, long expiryDelta, string primaryAccessChain, bool ifVerify, ChainLevel elaborationLevel, bool autoChain, List <RoutingObject> routingObjects, bool leavePacked) { this.uri = uri; this.type = type; this.expiry = expiry.Millisecond; this.expiryDelta = expiryDelta; this.primaryAccessChain = primaryAccessChain; this.ifVerify = ifVerify; this.elaborationLevel = elaborationLevel; this.autoChain = autoChain; this.routingObjects = routingObjects; this.leavePacked = leavePacked; }
public Request(RequestType type, string uri, bool persist, DateTime expiry, long expiryDelta, string primaryAccessChain, bool ifVerify, ChainLevel elaborationLevel, bool autoChain, List <RoutingObject> routingObjects, List <PayloadObject> payloadObjects) { this.uri = uri; this.type = type; this.persist = persist; this.expiry = expiry.Millisecond; this.expiryDelta = expiryDelta; this.primaryAccessChain = primaryAccessChain; this.ifVerify = ifVerify; this.elaborationLevel = elaborationLevel; this.autoChain = autoChain; this.routingObjects = routingObjects; this.payloadObjects = payloadObjects; }
public RequestUtils(string uri, RequestType type) { if (type.Equals(RequestType.PUBLISH)) { this.uri = uri; this.type = type; ifVerify = false; elaborationLevel = ChainLevel.UNSPECIFIED; autoChain = false; routingObjects = new List <RoutingObject>(); payloadObjects = new List <PayloadObject>(); } if (type.Equals(RequestType.SUBSCRIBE)) { this.uri = uri; this.type = type; ifVerify = false; elaborationLevel = ChainLevel.UNSPECIFIED; autoChain = false; routingObjects = new List <RoutingObject>(); leavePacked = false; } }
public RequestUtils SetChainLevel(ChainLevel elaborationLevel) { this.elaborationLevel = elaborationLevel; return(this); }