public bool Equals(RemoteProcedureDescriptor other) { return(ServiceHash.Equals(other.ServiceHash) && InterfaceHash.Equals(other.InterfaceHash) && MethodName.Equals(other.MethodName) && MethodSignature.Equals(other.MethodSignature)); }
public Guid ToGuid() { return(new Guid(ServiceHash.GetBytes() .Concat(InterfaceHash.GetBytes()) .Concat(MethodName.GetBytes()) .Concat(MethodSignature.GetBytes()) .ToArray())); }
public RemoteProcedureDescriptor(Guid guid) { var bytes = guid.ToByteArray(); ServiceHash = new ServiceHash(bytes); InterfaceHash = new InterfaceHash(bytes.Skip(4)); MethodName = new MethodNameHash(bytes.Skip(8)); MethodSignature = new MethodSignatureHash(bytes.Skip(12)); }