Files
Disco/Disco.Services/Plugins/Features/UIExtension/Results/LiteralResult.cs
T
Gary Sharp 989f08a24d Update: Plugin UI Extensions
Add additional Results; Implemented UI Extensions on Device, Job and
User Controllers
2013-02-28 17:13:15 +11:00

28 lines
673 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
namespace Disco.Services.Plugins.Features.UIExtension.Results
{
public class LiteralResult : UIExtensionResult
{
private string _content;
public LiteralResult(PluginFeatureManifest Source, string Content)
: base(Source)
{
this._content = Content;
}
public override void ExecuteResult<T>(WebViewPage<T> page)
{
if (!string.IsNullOrEmpty(_content))
page.Write(new HtmlString(_content));
}
}
}