Interface IMessageEvaluator
Defines interface for implementation of a custom Access Rule Expression component.
Namespace: Nevatech.Vsb.Repository.Security
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public interface IMessageEvaluator
Methods
Evaluate(ClaimsPrincipal, ref Message)
Returns True if provided caller identity and/or message content satisfies condition(s) implemented by the component.
Declaration
[SuppressMessage("Microsoft.Design", "CA1045:DoNotPassTypesByReference", MessageId = "1#")]
bool Evaluate(ClaimsPrincipal principal, ref Message message)
Parameters
| Type | Name | Description |
|---|---|---|
| ClaimsPrincipal | principal | Caller's principal. |
| Message | message | Request message that caller is sending. |
Returns
| Type | Description |
|---|---|
| bool | True, if provided caller identity and/or message content satisfies condition(s) implemented by the component. False, otherwise. |
ImportConfiguration(string)
Imports component configuration.
Declaration
void ImportConfiguration(string configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| string | configuration | String that defines the component configuration. |