コード例 #1
0
        public override void ProcessPreview(RenderResult renderResult, RenderTaskParameters parameters)
        {
            // This method will be called when the letter is previewed. Sometimes you don't want to perform exacly the same rendering in preview mode as
            // in the real send out. This method lets you do that. If you don't overide this, the base class will call ProcessPreRender. So if you want to do nothing on
            // preview: Override this method and leave it blank.

            // This line of code will replace any appearances of [prePreview] with "Preview: From Custom Render".
            renderResult.MessageBody = renderResult.MessageBody.Replace("[prePreview]", "Preview: From Custom Render");
        }
コード例 #2
0
        public override void ProcessPreview(RenderResult renderResult, RenderTaskParameters parameters)
        {
            // This method will be called when the letter is previewed. Sometimes you don't want to perform exacly the same rendering in preview mode as
            // in the real send out. This method lets you do that. If you don't overide this, the base class will call ProcessPreRender. So if you want to do nothing on
            // preview: Override this method and leave it blank.

            // This line of code will replace any appearances of [prePreview] with "Preview: From Custom Render".
            renderResult.MessageBody = renderResult.MessageBody.Replace("[prePreview]", "Preview: From Custom Render");
        }
コード例 #3
0
        public override void ProcessPreRender(RenderResult renderResult, RenderTaskParameters parameters)
        {
            // This method will run once per send out and can be used to create over all changes that's not dependent on the uniq subscriber.
            // if your render task only works with uniq subscriber data, this method can be left empty.
            // This demo is very simple but you could use regular expressions to find/replace content, connect to databases,
            // interact with the umbraco api, call external webserivces or what every you like inside this method.

            // This line of code will replace any appearances of [preRender] with "Send out: From Custom Render Task".
            renderResult.MessageBody = renderResult.MessageBody.Replace("[preRender]", "Send out: From Custom Render Task");
        }
コード例 #4
0
        public override void ProcessPreRender(RenderResult renderResult, RenderTaskParameters parameters)
        {
            // This method will run once per send out and can be used to create over all changes that's not dependent on the uniq subscriber.
            // if your render task only works with uniq subscriber data, this method can be left empty.
            // This demo is very simple but you could use regular expressions to find/replace content, connect to databases,
            // interact with the umbraco api, call external webserivces or what every you like inside this method.

            // This line of code will replace any appearances of [preRender] with "Send out: From Custom Render Task".
            renderResult.MessageBody = renderResult.MessageBody.Replace("[preRender]", "Send out: From Custom Render Task");
        }
コード例 #5
0
 public override void ProcessPreRender(RenderResult renderResult, RenderTaskParameters parameters)
 {
 }