Class QueryHealthOptions
- Namespace
- Cratis.Arc.Queries
- Assembly
- Cratis.Arc.Core.dll
Controls access to the query health diagnostic feed on direct endpoints and hub subscriptions.
public class QueryHealthOptions
- Inheritance
-
QueryHealthOptions
- Inherited Members
- Extension Methods
Constructors
QueryHealthOptions()
public QueryHealthOptions()
Properties
RequireAuthentication
Gets or sets whether callers of the query health feed must be authenticated.
public bool RequireAuthentication { get; set; }
Property Value
Remarks
When unset, the feed allows anonymous callers in Development and requires authentication elsewhere. The getter returns false when unset; only an explicit assignment overrides the environment default. Set true to require authentication in every environment, or false to allow anonymous access when no roles are configured.
Roles
Gets or sets comma-separated roles, any one of which grants access. Roles are trimmed and empty entries ignored. Configuring roles requires authentication in every environment, even if RequireAuthentication is false.
public string? Roles { get; set; }