Esempio n. 1
0
 public bool Equals(TypeToken other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.Name, Name) && Equals(other.Namespace, Namespace) && Equals(other.Assembly, Assembly));
 }
Esempio n. 2
0
        public ActionToken(ActionCall call)
        {
            MethodName  = call.Method.Name;
            HandlerType = new TypeToken(call.HandlerType);

            if (call.HasInput)
            {
                InputType = new TypeToken(call.InputType());
            }

            if (call.HasOutput)
            {
                OutputType = new TypeToken(call.OutputType());
            }
        }
Esempio n. 3
0
        public ActionToken(ActionCall call)
        {
            MethodName = call.Method.Name;
            HandlerType = new TypeToken(call.HandlerType);

            if (call.HasInput)
            {
                InputType = new TypeToken(call.InputType());
            }

            if (call.HasOutput)
            {
                OutputType = new TypeToken(call.OutputType());
            }
        }
Esempio n. 4
0
 public bool Equals(TypeToken other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other.Name, Name) && Equals(other.Namespace, Namespace) && Equals(other.Assembly, Assembly);
 }