Class PortalNotificationConfiguration
Represents a simplified alert handler's configuration that enables or disables sending automated email messages to Developer Portal administrators in response to pre-defined events.
Inheritance
Implements
Inherited Members
Namespace: Nevatech.Vsb.Repository.Services
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class PortalNotificationConfiguration : IValidator
Constructors
PortalNotificationConfiguration()
Declaration
public PortalNotificationConfiguration()
Fields
SupportedAlertHandlers
Gets collection of alert handler's unique identifiers that can be used in this configuration.
Declaration
public static readonly ReadOnlyCollection<Guid> SupportedAlertHandlers
Field Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<System.Guid> |
Properties
EnabledAlertHandlers
Gets collection of alert handler's unique identifiers that are currently enabled.
Declaration
public Collection<Guid> EnabledAlertHandlers { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.Collection<System.Guid> |
ErrorMessage
Gets the summary of validation errors populated by the call to Validate() method.
Declaration
public string ErrorMessage { get; }
Property Value
Type | Description |
---|---|
System.String |
SecurityRoles
Gets collection of security roles identifiers which members will receive notification messages.
Declaration
public Collection<int> SecurityRoles { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.Collection<System.Int32> |
ToAddresses
Gets or sets the string containing e-mail addresses of the message recipients.
Declaration
public string ToAddresses { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Examples
The format of the string is the following:
"Administrator <admin@test.com>, "Smith, John" <john.smith@test.com>"
Methods
Validate()
Validates this object's state.
Declaration
public bool Validate()
Returns
Type | Description |
---|---|
System.Boolean | True if object's state is valid; otherwise, false. |