Exemplo n.º 1
0
        public static Out ContentRenderedCheckSendEmail(RenderComplete rc, IState state)
        {
            var ws = state.AddOrUpdate(new WorkflowState {
                EmailContent = rc.Content
            }, existing =>
            {
                existing.EmailContent = rc.Content;
                return(existing);
            });

            return(SendEmailIfReady(ws));
        }
Exemplo n.º 2
0
        public static Out ContentTemplateStoredCheckRenderContent(TemplateStored ts, IState state)
        {
            var ws = state.AddOrUpdate(new WorkflowState {
                ContentTemplateId = ts.TemplateId
            }, existing =>
            {
                existing.ContentTemplateId = ts.TemplateId;
                return(existing);
            });

            return(RenderContentIfReady(ws));
        }
Exemplo n.º 3
0
        public static Out AddressTemplateStoredCheckRenderAddress(TemplateStored ts, IState state)
        {
            var ws = state.AddOrUpdate(new WorkflowState {
                AddressTemplateId = ts.TemplateId
            }, existing =>
            {
                existing.AddressTemplateId = ts.TemplateId;
                return(existing);
            });

            return(RenderAddressIfReady(ws));
        }
Exemplo n.º 4
0
        public static Out ModelStoredCheckRenderAddress(ModelStored ms, IState state)
        {
            var ws = state.AddOrUpdate(new WorkflowState {
                ModelId = ms.ModelId
            }, existing =>
            {
                existing.ModelId = ms.ModelId;
                return(existing);
            });

            return(RenderAddressIfReady(ws));
        }