ConfigurationService Class

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

Service class for getting configuration settings.

We need this class so that Weavy.exe can get configuration settings from the same web.config file as Weavy.Web.

public static class ConfigurationService
Inheritance:
System.Object → ConfigurationService

Properties

ActiveDirectoryDomain Gets the name of the Active Directory domain or server to authenticate against (
weavy.active-directory-domain
).
ActiveDirectoryPassword Gets the password to use when authenticating users against the active directory (
weavy.active-directory-password
).
ActiveDirectoryUsername Gets the username to use when authenticating users against the active directory (
weavy.active-directory-username
).
ApplicationName Gets the name of the application, e.g. Weavy (
weavy.application-name
).
ApplicationUrl Gets the absolute url to the installation, e.g. http://intranet.weavy.com or https://www.weavy.com/intranet. Used for links in outgoing emails etc. (
weavy.application-url
).
CustomAuthenticationEndpoint Gets the full url to a custom authentication endpoint. Must start with https://. (
weavy.custom-authentication-endpoint
).
DomainWhitelist Gets the whitelisted domains for invites and sign ups. Sign-ups and invites with these email domains are automatically approved (leaving this field blank will require an admin to approve all sign-ups and invites) (
weavy.domain-whitelist
).
Hsts Gets a value indicating whether HTTP Strict Transport Security (HSTS) is enabled (
weavy.hsts
).
Https Gets a value indicating if HTTPS is required (
weavy.https
)..
Invites Gets a value indicating whether users can invite people (
weavy.invites
).
JwtSecret Gets the shared secret to use for Widget SSO (
weavy.jwt-secret
).
LicensePublicKey Gets the (base64 encoded) public key used to verify that the license signature is valid (
weavy.license-public-key
).
LicenseUrl Gets the url to the licensing server (
weavy.license-url
).
MaxUploadSize Gets the maximum allowed size of uploaded files (in bytes).
MessengerNotificationHubConnectionString Gets the connection string for the Messenger notification hub (
weavy.messenger-notification-hub-connection-string
).
MessengerNotificationHubPath Gets the Messenger notification hub path (
weavy.messenger-notification-hub-path
).
NotificationHubConnectionString Gets the connection string for the notification hub (
weavy.notification-hub-connection-string
).
NotificationHubPath Gets the notification hub path (
weavy.notification-hub-path
).
PasswordLength Gets the minimum required password length (
weavy.password-length
).
PasswordRequiresDigit Gets a value indicating whether passwords must contain at least one digit (0-9) (
weavy.password-requires-digit
).
PasswordRequiresLower Gets a value indicating whether passwords must contain at least one lower case letter (a-z) (
weavy.password-requires-lower
).
PasswordRequiresSpecial Gets a value indicating whether passwords must at least one special character (non letter or digit) (
weavy.password-requires-special
).
PasswordRequiresUpper Gets a value indicating whether passwords must contain at least one upper case letter (A-Z) (
weavy.password-requires-upper
).
Signups Gets a value indicating whether users can sign up for an account (
weavy.signups
).
SmtpDefaultCredentials Gets a value indicating whether default user credentials should be used to access the SMTP server. When this property is set, username and password will be ignored (
weavy.smtp-default-credentials
).
SmtpFrom Gets the email address from which outgoing emails should be sent (
weavy.smtp-from
).
SmtpPassword Gets the password to use for authentication against the SMTP server (
weavy.smtp-password
).
SmtpPort Gets the port used for SMTP transactions, default value is 25 (
weavy.smtp-port
).
SmtpServer Gets the name or IP address of the host used for SMTP transactions (
weavy.smtp-server
).
SmtpSsl Gets a value indicating whether to use Secure Sockets Layer (SSL) to encrypt the connection with the SMTP server (
weavy.smtp-ssl
).
SmtpUsername Gets the username to use for authentication against the SMTP server (
weavy.smtp-username
).
Source Gets the source of the deployment package (
weavy.source
).
Weavy Gets or sets the Weavy configuration settings.
WindowsAuthentication Gets a value indicating whether the application is configured to use windows authentication.

Methods

AppSetting(String) Get the specified app setting from the appSettings element in the configuration file.
ConnectionString(String) Get the specified connection string from the connectionStrings element in the configuration file.
GetSection(String) Retrieves the specified configuration section from the appplication's configuration file.