示例#1
0
 public bool Equals(RemoteProcedureDescriptor other)
 {
     return(ServiceHash.Equals(other.ServiceHash) &&
            InterfaceHash.Equals(other.InterfaceHash) &&
            MethodName.Equals(other.MethodName) &&
            MethodSignature.Equals(other.MethodSignature));
 }
示例#2
0
 public Guid ToGuid()
 {
     return(new Guid(ServiceHash.GetBytes()
                     .Concat(InterfaceHash.GetBytes())
                     .Concat(MethodName.GetBytes())
                     .Concat(MethodSignature.GetBytes())
                     .ToArray()));
 }
示例#3
0
        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));
        }