public UserService(IRepository <Users> userRepo, IEncryptionAdapter encryptionAdapter, IRepository <UserRole> userRoleRepo, IRepository <Scripts> scriptRepo, IRepository <ScriptImages> scriptImageRepo) { _repo = userRepo; _encrypt = encryptionAdapter; _repo_Role = userRoleRepo; _repo_Script = scriptRepo; _repo_ScriptImage = scriptImageRepo; }
public UserService(IRepository <User> genericRepository, IEncryptionAdapter encryptionAdapter) { _genericRepository = genericRepository; _encryptionAdapter = encryptionAdapter; }
private BinarySerializationAdapter(SerializationInfo info, StreamingContext context) { // Not verifying arguments passed by serialization framework this.dataType = (Type)info.GetValue(BinarySerializationAdapter.DataTypeName, typeof(Type)); this.adapter = (IEncryptionAdapter)info.GetValue(BinarySerializationAdapter.AdapterName, typeof(IEncryptionAdapter)); }