Beispiel #1
0
 internal RESPCommand(RESPCommandLiteral header, Boolean isSubscriptionCommand, Int32?capacity = null)
 {
     _parts  = capacity.HasValue ? new List <RESPCommandPart>(capacity.Value) : new List <RESPCommandPart>();
     _header = header;
     _parts.Add(header);
     IsSubscription = isSubscriptionCommand;
 }
Beispiel #2
0
 internal CommandBinder(RESPCommandLiteral header, Boolean isSubscription)
 {
     Header         = header;
     IsSubscription = isSubscription;
     Parts          = new List <RESPCommandPart>();
 }