Show / Hide Table of Contents

Class WMApp

Global application object for the World Modeler Server application. It provides:

  • Cache management
  • Application configuration parameters
  • Access to the HTTPContext
Inheritance
object
WMApp
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Quantellia.WMServer.App
Assembly: WMServer.dll
Syntax
public static class WMApp

Fields

DefaultCacheAbsoluteLifetime

Default absolute lifetime of server cache in seconds.

Declaration
public const double DefaultCacheAbsoluteLifetime = 86400
Field Value
Type Description
double

DefaultCacheSlidingLifetime

Default sliding lifetime of server cache in seconds.

Declaration
public const double DefaultCacheSlidingLifetime = 600
Field Value
Type Description
double

EncryptionPlaceholder

String used when an encrypted value is returned.

Declaration
public const string EncryptionPlaceholder = "********"
Field Value
Type Description
string

Properties

AppConfig

Evaluate the application configuration.

Declaration
public static IConfiguration AppConfig { get; }
Property Value
Type Description
IConfiguration

Cache

Application-wide reference to the application cache.

Declaration
public static IMemoryCache Cache { get; }
Property Value
Type Description
IMemoryCache

HTTPContext

Evaluate the current HTTP context

Declaration
public static HttpContext? HTTPContext { get; }
Property Value
Type Description
HttpContext

InstanceID

Evaluate the Instance ID of this instance of World Modeler.

Declaration
public static string InstanceID { get; }
Property Value
Type Description
string

RequestURLHost

Evaluate the protocol and host part of the request URL.

Declaration
public static string RequestURLHost { get; }
Property Value
Type Description
string

RequestURLPath

Evaluate the protocol, host, and path part of the request URL.

Declaration
public static string RequestURLPath { get; }
Property Value
Type Description
string

Methods

GetInstanceID()

Returns the Instance ID of the World Modeler application instance.

Declaration
public static string GetInstanceID()
Returns
Type Description
string

Returns the Instance ID of the World Modeler application instance.

Init(WebApplicationBuilder)

Initialize the WMApp static variables.

Declaration
public static void Init(WebApplicationBuilder builder)
Parameters
Type Name Description
WebApplicationBuilder builder
In this article
Back to top Copyright © 2025 Quantellia LLC.    Version 2.0.0 Revision 399     Last Updated 1/15/2025    DRAFT DOCUMENTATION. SUBJECT TO CHANGE