Exemplo n.º 1
0
        public TeamHandler(IRepository <TeamPartRecord> repository, IBasicDataService basicDataService)
        {
            Filters.Add(StorageFilter.For(repository));
            this.OnCreated <TeamPart>((context, part) =>
            {
                basicDataService.ClearCache();
            });

            this.OnUpdated <TeamPart>((context, part) =>
            {
                basicDataService.ClearCache();
            });

            this.OnRemoved <TeamPart>((context, part) =>
            {
                basicDataService.ClearCache();
            });
        }
Exemplo n.º 2
0
        public UserRoleHandler(IRepository <UserRolesPartRecord> repository, IBasicDataService basicDataService)
        {
            Filters.Add(new ActivatingFilter <UserRolesPart>("User"));

            this.OnCreated <UserRolesPart>((contextPart, part) =>
            {
                basicDataService.ClearCache();
            });

            this.OnUpdated <UserRolesPart>((contextPart, part) =>
            {
                basicDataService.ClearCache();
            });

            this.OnRemoved <UserRolesPart>((contextPart, part) =>
            {
                basicDataService.ClearCache();
            });
        }