Пример #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));
        }
Пример #4
0
 public ServiceHash(InterfaceHash interfaceHash) : base(interfaceHash.GetBytes())
 {
 }