Exemplo n.º 1
0
 public EMDocument(string path, TransformationData data)
 {
     LocalPath          = path;
     TransformationData = data;
     preprocessedData   = new PreprocessedData(this, data.ProcessedDocumentCache);
     publish            = false;
 }
Exemplo n.º 2
0
 internal Clause(UserAttribute attribute, Operator op, IEnumerable <LdValue> values, bool negate)
 {
     Attribute    = attribute;
     Op           = op;
     Values       = values ?? Enumerable.Empty <LdValue>();
     Negate       = negate;
     Preprocessed = Preprocess(Op, Values);
 }
Exemplo n.º 3
0
 internal Segment(string key, int version, bool deleted, IEnumerable <string> included, IEnumerable <string> excluded,
                  IEnumerable <SegmentRule> rules, string salt)
 {
     Key          = key;
     Version      = version;
     Deleted      = deleted;
     Included     = included ?? Enumerable.Empty <string>();
     Excluded     = excluded ?? Enumerable.Empty <string>();
     Rules        = rules ?? Enumerable.Empty <SegmentRule>();
     Salt         = salt;
     Preprocessed = Preprocess(Included, Excluded);
 }
Exemplo n.º 4
0
 internal Target(IEnumerable <string> values, int variation)
 {
     Values       = values ?? Enumerable.Empty <string>();
     Variation    = variation;
     Preprocessed = Preprocess(Values);
 }