public void Configure(BehaviorGraph graph)
        {
            graph.Actions().Where(x => x.InputType().CanBeCastTo<JsonMessage>()).ToList().Each(x =>
            {
                var inputType = x.InputType();
                var deserialization = new DeserializeJsonNode(inputType);

                x.AddBefore(deserialization);
            });
        }
示例#2
0
 public bool Equals(DeserializeJsonNode other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other._messageType, _messageType));
 }
 public void SetUp()
 {
     node = new DeserializeJsonNode(_messageType);
 }
 public bool Equals(DeserializeJsonNode other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other._messageType, _messageType);
 }