public static void Configure(ProcessManager pm) { pm.AddProcessor(stored => stored.CorrelationId.ToString(), new [] { new Mapping <ModelStored>(ModelStoredCheckRenderContentKey, ModelStoredCheckRenderContent), new Mapping <ModelStored>(ModelStoredCheckRenderAddressKey, ModelStoredCheckRenderAddress) }); pm.AddProcessor(stored => stored.CorrelationId.ToString(), new[] { new Mapping <TemplateStored>(ContentTemplateStoredCheckRenderContentKey, ContentTemplateStoredCheckRenderContent), new Mapping <TemplateStored>(AddressTemplateStoredCheckRenderAddressKey, AddressTemplateStoredCheckRenderAddress) }); pm.AddProcessor(complete => complete.CorrelationId.ToString(), new [] { new Mapping <RenderComplete>(AddressRenderedCheckSendEmailKey, AddressRenderedCheckSendEmail), new Mapping <RenderComplete>(ContentRenderedCheckSendEmailKey, ContentRenderedCheckSendEmail) }); pm.AddProcessor(sent => sent.CorrelationId.ToString(), new Mapping <EmailSent>("EmailSent", EmailSent)); pm.AddProcessor(to => to.CorrelationId.ToString(), new Mapping <TimeOutMessage>("TimeOut", TimeOut)); }