示例#1
0
 /// <summary>
 /// Sets the scopes of a scope set: existing scopes that do not appear in <paramref name="set"/>
 /// are removed.
 /// </summary>
 /// <param name="ctx">The call context.</param>
 /// <param name="actorId">The acting actor identifier.</param>
 /// <param name="set">The new scope set value.</param>
 /// <returns>The awaitable.</returns>
 public virtual Task SetScopesAsync(ISqlCallContext ctx, int actorId, AuthScopeSet set)
 {
     return(DoAddOrUpdateScopesAsync(ctx, actorId, set.ScopeSetId, set.ToString(), true, 'W', true));
 }
示例#2
0
 /// <summary>
 /// Sets the scopes of a scope set: existing scopes that do not appear in <paramref name="set"/>
 /// are removed.
 /// </summary>
 /// <param name="ctx">The call context.</param>
 /// <param name="actorId">The acting actor identifier.</param>
 /// <param name="set">The new scope set value.</param>
 public virtual void SetScopes(ISqlCallContext ctx, int actorId, AuthScopeSet set)
 {
     DoAddScopes(ctx, actorId, set.ScopeSetId, set.ToString(), true, 'W', true);
 }