Пример #1
0
 /// <summary>
 /// Determines if a role title is unique within a specific UserArea.
 /// Role titles only have to be unique per UserArea.
 /// </summary>
 /// <param name="query">The parameters run the query with.</param>
 /// <param name="executionContext">Optional execution context to use when executing the query. Useful if you need to temporarily elevate your permission level.</param>
 /// <returns>True if the title is unique; otherwise false.</returns>
 public Task <bool> IsRoleTitleUniqueAsync(IsRoleTitleUniqueQuery query, IExecutionContext executionContext = null)
 {
     return(_queryExecutor.ExecuteAsync(query, executionContext));
 }
Пример #2
0
 public Task <bool> IsRoleTitleUniqueAsync(IsRoleTitleUniqueQuery query)
 {
     return(ExtendableContentRepository.ExecuteQueryAsync(query));
 }
 public IContentRepositoryQueryContext <bool> IsRoleTitleUnique(IsRoleTitleUniqueQuery query)
 {
     return(ContentRepositoryQueryContextFactory.Create(query, ExtendableContentRepository));
 }
Пример #4
0
 /// <summary>
 /// Determines if a role title is unique within a specific UserArea.
 /// Role titles only have to be unique per UserArea.
 /// </summary>
 /// <param name="query">The parameters run the query with.</param>
 /// <param name="executionContext">Optional execution context to use when executing the query. Useful if you need to temporarily elevate your permission level.</param>
 /// <returns>True if the title is unique; otherwise false.</returns>
 public bool IsRoleTitleUnique(IsRoleTitleUniqueQuery query, IExecutionContext executionContext = null)
 {
     return(_queryExecutor.Execute(query, executionContext));
 }