Beispiel #1
0
 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;
 }
Beispiel #4
0
 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;
     }
 }
Beispiel #5
0
 public RequestUtils SetChainLevel(ChainLevel elaborationLevel)
 {
     this.elaborationLevel = elaborationLevel;
     return(this);
 }