Class Environment.WebApi
Inheritance
System.Object
Environment.WebApi
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Experior.Core
Assembly: Experior.Core.dll
Syntax
public static class WebApi
Methods
SetCustomRequestHandler(Func<String, Byte[], Byte[]>)
Implement custom requests handler for the web API.
Declaration
public static void SetCustomRequestHandler(Func<string, byte[], byte[]> handler)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.String, System.Byte[], System.Byte[]> | handler | Func to handle custom request messages. Arguments are string id and additional request data. |
SetModelInformationHandler(Func<ModelInformation>)
Implement a model information function for the web API.
Declaration
public static void SetModelInformationHandler(Func<ModelInformation> handler)
Parameters
Type | Name | Description |
---|---|---|
System.Func<ModelInformation> | handler |
SetObjectInfoRequestHandler(Func<IMeshObject, Object>)
Override the "request info function" for the web API. Return the object which contains the properties to show (Assembly, Load, Motor, etc).
Declaration
public static void SetObjectInfoRequestHandler(Func<IMeshObject, object> handler)
Parameters
Type | Name | Description |
---|---|---|
System.Func<IMeshObject, System.Object> | handler |
SetSearchResultHandler(Func<String, String, List<SearchResult>>)
Implement a search result function for the web API. Arguments are "type" and "search" string.
Declaration
public static void SetSearchResultHandler(Func<string, string, List<SearchResult>> handler)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.String, System.String, System.Collections.Generic.List<SearchResult>> | handler |
SetUserService(IUserService)
Declaration
public static void SetUserService(IUserService userService)
Parameters
Type | Name | Description |
---|---|---|
IUserService | userService |