Closed jeremydmiller closed 10 years ago
{ public class FubuToRhinoEnvelopeModifier : IEnvelopeModifier { private readonly EnrollmentReconciliationSettings _settings;
public FubuToRhinoEnvelopeModifier(EnrollmentReconciliationSettings settings) { _settings = settings; } public void Modify(Envelope envelope) { var isAdmin = envelope.Message is AddSubscription; var isStandard = envelope.Message is UpdateApplicationOrPolicyState; if (isAdmin || isStandard) { envelope.Headers["type"] = isAdmin ? "AdministrativeMessageMarker" : "StandardMessage"; envelope.Headers[Envelope.SourceKey] = _settings.ServiceUri.ToString(); envelope.ContentType = "application/rhino/xml"; } } }
}
Meh, it's not quite generalized enough to put into FT itself. Not going to happen.
{ public class FubuToRhinoEnvelopeModifier : IEnvelopeModifier { private readonly EnrollmentReconciliationSettings _settings;
}