Пример #1
0
        public DataCenter(IJryVideoDataEngine dataEngine)
            : this(true)
        {
            this.ProviderManager = dataEngine;
            this.CoverManager = new CoverManager(dataEngine.GetCoverSet());
            this.SeriesManager = new SeriesManager(this, dataEngine.GetSeriesSet());
            this.VideoManager = new VideoManager(dataEngine.GetVideoSet());
            this.FlagManager = new FlagManager(dataEngine.GetFlagSet());
            this.ArtistManager = new ArtistManager(dataEngine.GetArtistSet());
            this.VideoRoleManager = new VideoRoleManager(this.SeriesManager, this.ArtistManager, dataEngine.GetVideoRoleInfoSet());
            this.UserWatchInfoManager = new UserWatchInfoManager(dataEngine.GetUserWatchInfoSet());

            // initialize
            this.SeriesManager.Initialize(this);
            this.VideoManager.Initialize(this);
            this.FlagManager.Initialize(this);
            this.VideoRoleManager.Initialize(this);
            this.CoverManager.Initialize(this);

            this.Journal.Initialize(this);
        }
Пример #2
0
        public DataCenter(IJryVideoDataEngine dataEngine)
            : this(true)
        {
            this.ProviderManager      = dataEngine;
            this.CoverManager         = new CoverManager(dataEngine.GetCoverSet());
            this.SeriesManager        = new SeriesManager(this, dataEngine.GetSeriesSet());
            this.VideoManager         = new VideoManager(dataEngine.GetVideoSet());
            this.FlagManager          = new FlagManager(dataEngine.GetFlagSet());
            this.ArtistManager        = new ArtistManager(dataEngine.GetArtistSet());
            this.VideoRoleManager     = new VideoRoleManager(this.SeriesManager, this.ArtistManager, dataEngine.GetVideoRoleInfoSet());
            this.UserWatchInfoManager = new UserWatchInfoManager(dataEngine.GetUserWatchInfoSet());

            // initialize
            this.SeriesManager.Initialize(this);
            this.VideoManager.Initialize(this);
            this.FlagManager.Initialize(this);
            this.VideoRoleManager.Initialize(this);
            this.CoverManager.Initialize(this);

            this.Journal.Initialize(this);
        }