public TeacherTaskController(ITaskManager taskManager, ISubjectManager subjectManager, ITypeOfTaskManager typeOfTaskManager, IGroupManager groupManager) { this._taskManager = taskManager; this._subjectManager = subjectManager; this._typeOfTaskManager = typeOfTaskManager; this._groupManager = groupManager; }
public TaskManager(IRepository<Task> taskRepository, ITeacherManager teacherManager, IGroupManager groupManager, ITypeOfTaskManager typeOfTaskManager) { this._taskRepository = taskRepository; this._teacherManager = teacherManager; this._groupManager = groupManager; this._typeOfTaskManager = typeOfTaskManager; }
public void ClearGroups(IGroupManager groups) { foreach (var groupName in _groupMembershipTracker.Keys.ToList()) { ClearGroup(groups, groupName); } }
public GroupManagerMock() { _dataSourceMock.RegisterData<Group>(MembershipTestData.Groups); _dataSourceMock.RegisterData<User>(MembershipTestData.Users); _dataSourceMock.Mock.Setup(d => d.Save<Group>(It.IsAny<Group>())).Returns<Group>(g => g); _groupManager = new GroupManager(_dataSourceMock.Mock.Object); }
public AppModule(IEmailManager emailManager, IGroupManager groupManager) : base("/app") { Get["/mail"] = _ => new MailsResponse { Emails = emailManager.GetAllEmails() }; Get["/mail/{id}"] = _ => emailManager.GetEmail(_.id); Get["/groups"] = _ => new GroupsResponse { Groups = groupManager.GetAllGroups() }; }
public async Task AddToGroup(IGroupManager groupManager, string group, string connection) { await groupManager.Add(connection, group); if (!_groupMembershipTracker.ContainsKey(group)) { _groupMembershipTracker[group] = new HashSet<string>(); } _groupMembershipTracker[group].Add(connection); }
public TeacherManager(IRepository<Teacher> teacherRepository, IRepository<Group2Teacher> groupToTeacherRepository, IGroupManager groupManager, IRepository<Institution2User> institutionToUserRepository) { this._teacherRepository = teacherRepository; this._groupToTeacherRepository = groupToTeacherRepository; this._groupManager = groupManager; this._institutionToUserRepository = institutionToUserRepository; }
public void ClearGroup(IGroupManager groupManager, string group) { if (!_groupMembershipTracker.ContainsKey(group)) return; var set = _groupMembershipTracker[group]; _groupMembershipTracker.Remove(group); foreach (var connectionId in set) { groupManager.Remove(connectionId, group); } }
public GroupService(IMembershipDataSource dataSource, IGroupManager groupManager, IUserManager userManager, IRoleManager roleManager) { if (!StrixMembership.Configuration.UseGroups) { throw new InvalidOperationException(Resources.Interface.GroupsNotEnabed); } this._dataSource = dataSource; this._groupManager = groupManager; this._userManager = userManager; this._roleManager = roleManager; }
public async Task RemoveFromGroup(IGroupManager groupManager, string group, string connection) { await groupManager.Remove(connection, group); if (!_groupMembershipTracker.ContainsKey(group)) return; var set = _groupMembershipTracker[group]; set.Remove(connection); if (set.Count == 0) { _groupMembershipTracker.Remove(group); } }
public void ieduNnurne(ICustomizeHandler icustomizeHandler_1, IBasicHandler ibasicHandler_1, IGroupManager igroupManager_1, IFriendsManager ifriendsManager_1, IContactsManager icontactsManager_1) { this.icustomizeHandler_0 = icustomizeHandler_1; this.ibasicHandler_0 = ibasicHandler_1; this.igroupManager_0 = igroupManager_1; this.ifriendsManager_0 = ifriendsManager_1; this.icontactsManager_0 = icontactsManager_1; }
internal static async Task RemoveUserFromAllHubGroups(this ConnectionUser connectionUser, IGroupManager groups) { var cGroups = connectionUser.Groups.Keys.ToList(); foreach (var key in cGroups) { await groups.RemoveFromGroupAsync(connectionUser.ConnectionId, key); connectionUser.Groups.Remove(key); } // connectionUser.Groups = null; // connectionUser.Groups = new Dictionary<string, IHubGroupItem>(); }
public StudentTextParser(IGroupManager groupManager, IStudentManager studentManager) { GroupManager = groupManager; StudentManager = studentManager; Columns = new List<Column>() { Index, FirstName, SecondName, FatherName, Group, Course }; }
public HubContext(dynamic clients, IGroupManager groupManager) { Clients = clients; Groups = groupManager; }
private SessionManager(IHubContext hubContext) { _clients = hubContext.Clients; _groups = hubContext.Groups; }
private static async Task <string> _removeGroupAsync(this ConnectionUser connectionUser, IGroupManager grops, Func <int, string> createName, int groupId) { var groupName = createName(groupId); if (!connectionUser.Groups.ContainsKey(groupName)) { return(groupName); } connectionUser.Groups.Remove(groupName); await grops.RemoveFromGroupAsync(connectionUser.ConnectionId, groupName); return(groupName); }
internal static async Task <string> AddOrReplaceAllianceRecrutManagerGroupAsync( this ConnectionUser connectionUser, IGroupManager grops) { return(await connectionUser.AddOrReplaceGroupAsync(grops, connectionUser.AllianceId, HubGroupTypes.Alliance, connectionUser.AllianceName, HubGroupPrefix.RecrutManager)); }
internal static async Task <string> RemoveAllianceRecrutManagerGroupNameAsync(this ConnectionUser connectionUser, IGroupManager grops) { return (await connectionUser._removeGroupAsync(grops, CreateAllianceRecrutManagerGroupName, connectionUser.AllianceId)); }
public GroupController() { _aManager = new GroupManager(); }
public void TestSetup() { groupManager = new FakeGroupManager(); gardenManager = new FakeGardenManager(); }
public AppController(IUserManager userManager, IRouteManager routeManager, IGroupManager groupManager) { _userManager = userManager; _routeManager = routeManager; _groupManager = groupManager; }
internal static async Task <string> RemoveGroupChannelNameAsync(this ConnectionUser connectionUser, IGroupManager grops, int channelId) { return(await connectionUser._removeGroupAsync(grops, CreateGroupChannelGroupName, channelId)); }
/// <summary> /// Initializes a new instance of <see cref="PersistentConnectionContext"/>. /// </summary> /// <param name="connection">The connection for the <see cref="PersistentConnectionContext"/>.</param> /// <param name="groupManager">The group manager for the <see cref="PersistentConnectionContext"/>.</param> public PersistentConnectionContext(IConnection connection, IGroupManager groupManager) { Connection = connection; GroupManager = groupManager; }
private GameState(IHubContext context) { Clients = context.Clients; Groups = context.Groups; }
public FileSystemHubTest(IEnvironment environment, ITracer tracer, HubCallerContext context, IGroupManager group, HubConnectionContext clients) : base(environment, tracer) { Context = context; Groups = group; Clients = clients; }
public GroupController(KhatmaContext khatmaContext, IMapper Mapper, IGroupManager groupManager) { _KhatmaContext = khatmaContext; _Mapper = Mapper; _groupManager = groupManager; }
private Ticker(IHubConnectionContext<dynamic> clients, IGroupManager groups) { Clients = clients; Groups = groups; }
public GroupController(IGroupManager groupManager) { this._groupManager = groupManager; }
public SetModeratorCommand(IGroupManager groupManager) { this.groupManager = groupManager; }
public InviteMemberCommand(IGroupManager groupManager, IMapper mapper) { this.groupManager = groupManager; this.mapper = mapper; }
public GroupManagerController(IGroupManager groupManager, IInstitutionManager institutionManager) { this._groupManager = groupManager; this._institutionManager = institutionManager; }
public GroupController() { GroupManager = Site.GroupManager; }
public MessageCommands(List <Translation> translations, IGuildManager guildManager, IGroupManager groupManager, IConfiguration configuration, GuildInteractionService guildInteractionService) : base(translations, guildManager, groupManager, configuration) { _groupManager = groupManager; }