Class UI
Inheritance
System.Object
UI
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Goui
Assembly: Goui.dll
Syntax
Fields
|
Improve this Doc
View Source
MaxFps
Declaration
public const int MaxFps = 30
Field Value
Type |
Description |
System.Int32 |
|
Properties
|
Improve this Doc
View Source
BodyFooterHtml
Declaration
public static string BodyFooterHtml { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
BodyHeaderHtml
Declaration
public static string BodyHeaderHtml { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public static bool CanConfigure { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ClientJsBytes
Declaration
public static byte[] ClientJsBytes { get; }
Property Value
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
ClientJsEtag
Declaration
public static string ClientJsEtag { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Config
Declaration
public static UIConfig Config { get; set; }
Property Value
|
Improve this Doc
View Source
HeadHtml
Declaration
public static string HeadHtml { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Host
Declaration
public static string Host { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Port
Declaration
public static int Port { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
ServerEnabled
Declaration
public static bool ServerEnabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Styles
Declaration
public static UI.StyleSelectors Styles { get; }
Property Value
Methods
|
Improve this Doc
View Source
GetUrl(String)
Declaration
public static string GetUrl(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Present(String, Object)
Declaration
public static void Present(string path, object presenter = null)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.Object |
presenter |
|
|
Improve this Doc
View Source
Publish(String, Element)
Declaration
public static void Publish(string path, Element element)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Element |
element |
|
|
Improve this Doc
View Source
Publish(String, Func<Element>, Boolean)
Declaration
public static void Publish(string path, Func<Element> elementCtor, bool disposeElementWhenDone = true)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.Func<Element> |
elementCtor |
|
System.Boolean |
disposeElementWhenDone |
|
|
Improve this Doc
View Source
PublishCustomResponse(String, Action<HttpListenerContext, CancellationToken>)
Declaration
public static void PublishCustomResponse(string path, Action<HttpListenerContext, CancellationToken> responder)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.Action<System.Net.HttpListenerContext, System.Threading.CancellationToken> |
responder |
|
|
Improve this Doc
View Source
PublishFile(String)
Declaration
public static void PublishFile(string filePath)
Parameters
Type |
Name |
Description |
System.String |
filePath |
|
|
Improve this Doc
View Source
PublishFile(String, Byte[], String)
Declaration
public static void PublishFile(string path, byte[] data, string contentType)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.Byte[] |
data |
|
System.String |
contentType |
|
|
Improve this Doc
View Source
PublishFile(String, Byte[], String, String)
Declaration
public static void PublishFile(string path, byte[] data, string etag, string contentType)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.Byte[] |
data |
|
System.String |
etag |
|
System.String |
contentType |
|
|
Improve this Doc
View Source
PublishFile(String, String, String)
Declaration
public static void PublishFile(string path, string filePath, string contentType = null)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.String |
filePath |
|
System.String |
contentType |
|
|
Improve this Doc
View Source
PublishJson(String, Func<Object>)
Declaration
public static void PublishJson(string path, Func<object> ctor)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.Func<System.Object> |
ctor |
|
|
Improve this Doc
View Source
PublishJson(String, Object)
Declaration
public static void PublishJson(string path, object value)
Parameters
Type |
Name |
Description |
System.String |
path |
|
System.Object |
value |
|
|
Improve this Doc
View Source
ReceiveWebAssemblySessionMessageJson(String, String)
Declaration
public static void ReceiveWebAssemblySessionMessageJson(string sessionId, string json)
Parameters
Type |
Name |
Description |
System.String |
sessionId |
|
System.String |
json |
|
|
Improve this Doc
View Source
RenderTemplate(TextWriter, String, String, String)
Declaration
public static void RenderTemplate(TextWriter writer, string webSocketPath, string title, string initialHtml)
Parameters
Type |
Name |
Description |
System.IO.TextWriter |
writer |
|
System.String |
webSocketPath |
|
System.String |
title |
|
System.String |
initialHtml |
|
|
Improve this Doc
View Source
RenderTemplate(String, String, String)
Declaration
public static string RenderTemplate(string webSocketPath, string title = "", string initialHtml = "")
Parameters
Type |
Name |
Description |
System.String |
webSocketPath |
|
System.String |
title |
|
System.String |
initialHtml |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
StartWebAssemblySession(String, String, String)
Declaration
public static void StartWebAssemblySession(string sessionId, string elementPath, string initialSize)
Parameters
Type |
Name |
Description |
System.String |
sessionId |
|
System.String |
elementPath |
|
System.String |
initialSize |
|
|
Improve this Doc
View Source
TryGetFileContentAtPath(String, out UI.FileContent)
Declaration
public static bool TryGetFileContentAtPath(string path, out UI.FileContent file)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
WaitUntilStarted()
Declaration
public static void WaitUntilStarted()