Пример #1
0
 public ComplexPropertyAction(IComplexObjectSerializerFactory serializerFactory, IPiiPropertyProcessor piiProcessor)
 {
     CodeContract.RequiresArgumentNotNull <IComplexObjectSerializerFactory>(serializerFactory, "serializerFactory");
     CodeContract.RequiresArgumentNotNull <IPiiPropertyProcessor>(piiProcessor, "piiProcessor");
     this.serializerFactory = serializerFactory;
     this.piiProcessor      = piiProcessor;
     converterToHashValue   = ((object value) => this.piiProcessor.ConvertToHashedValue(value));
     converterToRawValue    = ((object value) => this.piiProcessor.ConvertToRawValue(value).ToString());
 }
Пример #2
0
 public PiiAction(IPiiPropertyProcessor piiPropertyProcessor)
 {
     CodeContract.RequiresArgumentNotNull <IPiiPropertyProcessor>(piiPropertyProcessor, "piiPropertyProcessor");
     this.piiPropertyProcessor = piiPropertyProcessor;
 }