Interface ITeamLifecycleService
Team lifecycle operations that precede a team existing, and so cannot be authorized against one.
public interface ITeamLifecycleService
Remarks
Separate from ITeamManagementService because creation is the one operation with no team
to name: its rule is "an authenticated caller, where the host allows team creation", enforced by
AuthorizationTeamServiceDecorator.RequireCreateAsync. Leaving it on the team-management
interface would make that interface half team-bound and half not, which is precisely the shape that
forces authorization back into per-method annotations.
Methods
CreateTeamAsync(string)
Creates a team owned by the caller. Requires authentication and the host's AllowTeamCreation
— no scope, since the caller cannot hold one for a team that does not yet exist.
Task<ITeam> CreateTeamAsync(string name = null)
Parameters
namestring