Exemple #1
0
 public TeamService(ITeamContext teamContext, IPlayerContext playerContext, IRoleContext roleContext, IDivisionContext divisionContext)
 {
     _teamContext     = teamContext;
     _playerContext   = playerContext;
     _roleContext     = roleContext;
     _divisionContext = divisionContext;
 }
        static public void FillORoleContextAsYouLike(IRoleContext context)
        {
            var orole = (ORoleContext)context;

            orole.Name           = defaultName;
            orole.Role           = defaultRole;
            orole.NeedLogin      = false;
            orole.NeedPermission = false;
        }
Exemple #3
0
 public RoleRepository(IRoleContext context)
 {
     _context = context;
 }
Exemple #4
0
 public RoleRepository(IRoleContext context)
 {
     _context = context ?? throw new NullReferenceException(nameof(context));
 }
Exemple #5
0
 public RoleRepository(IRoleContext context)
 {
     this._Context = context;
 }