public UserStore(IConfiguredConnection conn) { _conn = conn; _userSvc = new UserSvc(_conn.GetRepository(), new Dispatcher("bus-to-nowhere")); _usersRm = new UsersRm(_conn); _subjectsRm = new SubjectsRm(_conn); _repo = _conn.GetCorrelatedRepository(); }
public ApplicationSvc( IConfiguredConnection conn, ICommandSubscriber subscriber) : base(subscriber) { _conn = conn; _repo = conn.GetCorrelatedRepository(); _rm = new FilteredPoliciesRM(conn); Subscribe <ApplicationMsgs.CreateApplication>(this); }
public with_correlated_repository(StreamStoreConnectionFixture fixture) { _fixture = fixture; fixture.Connection.Connect(); _stdRepo = new StreamStoreRepository(new PrefixedCamelCaseStreamNameBuilder(), fixture.Connection, new JsonMessageSerializer()); _repo = new CorrelatedStreamStoreRepository( _stdRepo); }
public PolicySvc( IConfiguredConnection conn, ICommandSubscriber cmdSource) : base(cmdSource) { _repo = conn.GetCorrelatedRepository(caching: true); Subscribe <ApplicationMsgs.CreateRole>(this); Subscribe <PolicyUserMsgs.AddPolicyUser>(this); Subscribe <PolicyUserMsgs.AddRole>(this); Subscribe <PolicyUserMsgs.RemoveRole>(this); Subscribe <PolicyUserMsgs.DeactivateUser>(this); Subscribe <PolicyUserMsgs.ReactivateUser>(this); }