public bool Inspect <TMessage, TKey>(CorrelatedMessageSinkRouter <TMessage, TKey> sink) where TMessage : class, CorrelatedBy <TKey> { Append(string.Format("Routed for Correlation Id {1} ({0})", typeof(TMessage).Name, sink.CorrelationId)); return(true); }
public bool Inspect <T, TMessage, TKey>(CorrelatedMessageSinkRouter <T, TMessage, TKey> sink) where T : class where TMessage : class, ICorrelatedBy <TKey> { Append(string.Format("Routed for Correlation Id {1} ({0})", GetMessageName <TMessage>(), sink.CorrelationId)); return(true); }
public bool Inspect <TMessage, TKey>(CorrelatedMessageSinkRouter <TMessage, TKey> sink) where TMessage : class, CorrelatedBy <TKey> { if (sink.CorrelationId.ToString() == "FirstSybsystemCorrelationId") { firstSubSystemRouteDefined = true; } if (sink.CorrelationId.ToString() == "SecondSubsystemCorrelationId") { secondSubSystemRouteDefined = true; } return(true); }
public bool Inspect <T, TMessage, TKey>(CorrelatedMessageSinkRouter <T, TMessage, TKey> sink) where TMessage : class, CorrelatedBy <TKey> where T : class { if (typeof(TMessage) == _messageType && typeof(TKey) == _keyType) { string key = sink.CorrelationId.ToString(); if (_match(key)) { Success = true; return(false); } } return(true); }