public string CreateKey(MemberInfo memberInfo, object[] arguments) { var serializedArguments = _argumentSerializer.Serialize(arguments); var serializedMemberInfo = _memberInfoSerializer.Serialize(memberInfo); var serialized = new byte[serializedArguments.Length + serializedMemberInfo.Length]; serializedArguments.CopyTo(serialized, 0); serializedMemberInfo.CopyTo(serialized, serializedArguments.Length); var hashed = _hashAlgorithm.CreateHash(serialized); var key = _stringEncoder.BytesToString(hashed); return(key); }
public string Base64StringEncoder() => _base64.BytesToString(_bytes);