Ejemplo 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));
 }
Ejemplo 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());
            }
        }
Ejemplo 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());
            }
        }
Ejemplo 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);
 }