Skip to content
Snippets Groups Projects

NotificationConfiguration

This project contains the configuration for actions and channels for the notification system.

Placeholder

Placeholders can be used to extend the the provided texts with custom information. This is done be including the place holder within the language specific template, like this {{examplePlaceholder}} There are two types of placeholders that can be used: derived palceholders and custom placeholes. Derived placeholders are taken from the affected user or the project, currently the following information can be used, they are identified by an underscore:

  • _targetUserName
  • _projectName

Custom placeholders must be provided in the JObject that is sent to the NotificationBus:

var obj = new JObject
{
    ["args"] = new JObject
    {
        ["placeholder"] = new JObject
        {
            ["examplePlaceholder"] = "exampleText"
        }
    }
};

To provide a clear destinction they should not use an underscore. Keep in mind that placeholders are not localized