コード例 #1
0
 /// <summary>
 /// Gets the organization with the specified <paramref name="orgId"/> using the specified <paramref name="view"/>.
 /// </summary>
 /// <param name="orgId">The organization's id.</param>
 /// <param name="view">The view of the organization to get.</param>
 /// <param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="CancellationToken.None"/>.</param>
 /// <returns></returns>
 public Task <Organization> GetOrganizationAsync(string orgId, OrganizationView view, CancellationToken cancellationToken = default) => GetOrganizationAsync(orgId, view.Validate(nameof(view)).GetValue(), cancellationToken);
コード例 #2
0
 /// <summary>
 /// Gets the root organization using the specified <paramref name="view"/>.
 /// </summary>
 /// <param name="view">The view of the organization to get.</param>
 /// <param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="CancellationToken.None"/>.</param>
 /// <returns></returns>
 public Task <Organization> GetRootOrganizationAsync(OrganizationView view, CancellationToken cancellationToken = default) => GetRootOrganizationAsync(view.Validate(nameof(view)).GetValue(), cancellationToken);