protected internal override void Setup(FeatureConfigurationContext context) { var serviceConstructor = context.Settings.GetEncryptionServiceConstructor(); var service = serviceConstructor(); var inspector = new EncryptionInspector(context.Settings.Get<Conventions>()); context.Pipeline.Register(new EncryptBehavior.EncryptRegistration(inspector, service)); context.Pipeline.Register(new DecryptBehavior.DecryptRegistration(inspector, service)); }
protected internal override void Setup(FeatureConfigurationContext context) { var serviceConstructor = context.Settings.GetEncryptionServiceConstructor(); var service = serviceConstructor(); var inspector = new EncryptionInspector(context.Settings.Get <Conventions>()); context.Pipeline.Register(new EncryptBehavior.EncryptRegistration(inspector, service)); context.Pipeline.Register(new DecryptBehavior.DecryptRegistration(inspector, service)); }
public void BaseSetUp() { conventions = BuildConventions(); inspector = new EncryptionInspector(conventions); }
public void BaseSetUp() { conventions = BuildConventions(); inspector = new EncryptionInspector(new IsEncryptedPropertyConvention(conventions)); }