Table of Contents

Class WorkspaceConfiguration

Namespace
C4.Net.Config
Assembly
C4.Net.Core.dll

Stores workspace access control settings such as the allowed users and their roles.

[DataContract]
public sealed class WorkspaceConfiguration
Inheritance
WorkspaceConfiguration
Inherited Members

Properties

Users

Returns the configured users as a defensive copy.

[DataMember(Name = "users", EmitDefaultValue = false)]
public ISet<User> Users { get; }

Property Value

ISet<User>

Remarks

Changes made to the returned set do not update the underlying configuration.

Methods

AddUser(string, Role)

Adds or replaces a workspace user with the supplied role.

public void AddUser(string username, Role role)

Parameters

username string

The username to configure.

role Role

The role to assign to the user.

Exceptions

ArgumentException

Thrown when username is missing or whitespace.