CollectionExtensions.Assert Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Assert(ICollection, Permission)

Throws a ForbiddenException if the requested permission does not exist in the list of supplied permissions.

public static void Assert(this ICollection<Permission> permissions, Permission requested)

Parameters

permissions
System.Collections.Generic.ICollection

The permissions to check.

requested
Permission

The requested permission.