DaisiStaticSettings

Namespace: Daisi.SDK.Models

This is a static helper class for configuring various SDK defaults.

Static Properties

  • string? ClientKey get and set
    The client key that will be passed to the Orc and Hosts if using static client keys for your app. Your app's client key should not be the same as your Users'' client keys if you are using Daisi Authentication.
  • string ClientKeyHeader get
    This is the header that the Orcs and Hosts will be looking for during authentication and authorization.
  • string OrcIpAddressOrDomain get and set
    This is the IpAddress ("192.168.1.100") or domain ("orc-dev.daisinet.com") for the Orc that you intend to connect to. Your app will be assigned an orc automatically or you can assign it manually in the app startup by setting this value.
  • int OrcPort get and set
    This is the publicly exposed port number that your Orc uses for incoming connections. Default is 443, for SSL.
  • bool OrcUseSSL get and set
    Determines whether your Orc uses SSL or not. Highly recommended that you leave this as the default value of True. If you have a situation where you need to connect to an Orc without SSL in a production environment, please understand that these connections will not be secure and you will potentially expose important information.
  • string Protocol get
    Helper function. Returns "https" is OrcUseSSL is true or "http" if OrcUseSSL is false.
  • string? SecretKey get and set
    This is your app's secret key. This is only sent to the Orcs and never exposed to Hosts. You should keep it a secret as well, hence the name.

Static Methods

  • void LoadFromConfiguration(IDictionary<string,string> configuration)
    Loads these static settings from a config dictionary.
  • void LoadFromConfiguration(string sectionName)
    Loads these static settings from the app.config file for your application, given the section name.
// Set values in code
DaisiStaticSettings.OrcIpAddressOrDomain = "orc.mydomain.local";
DaisiStaticSettings.OrcPort = 5000;
DaisiStaticSettings.OrcUseSSL = true;
DaisiStaticSettings.SecretKey = "secret-...";
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.