private void InitaliseErrorSystem()
        {
            var errorHub = new ErrorApplicationObject();

            this.RegisterServiceInstance <IErrorReporter>(errorHub);
            this.RegisterServiceInstance <IErrorSource>(errorHub);
        }
        private void InitaliseErrorSystem()
        {
            var errorHub = new ErrorApplicationObject();

            Mvx.RegisterSingleton <IErrorReporter>(errorHub);
            Mvx.RegisterSingleton <IErrorSource>(errorHub);
        }
示例#3
0
        public App()
        {
            this.RegisterServiceInstance <IRequestService>(new RequestService());
            this.RegisterServiceInstance <IAuthInfoService>(new AuthInfoService());

            var startApplicationObject = new StartApplicationObject();

            this.RegisterServiceInstance <IMvxStartNavigation>(startApplicationObject);

            var errorHub = new ErrorApplicationObject();

            this.RegisterServiceInstance <IErrorReporter>(errorHub);
            this.RegisterServiceInstance <IErrorSource>(errorHub);
        }
示例#4
0
文件: App.cs 项目: e-borysiuk/Reroll
        public override void Initialize()
        {
            CreatableTypes()
            .EndingWith("Service")
            .AsInterfaces()
            .RegisterAsLazySingleton();

            CreatableTypes()
            .EndingWith("Repository")
            .AsInterfaces()
            .RegisterAsLazySingleton();

            var errorApplicationObject = new ErrorApplicationObject();

            Mvx.RegisterSingleton <IErrorReporter>(errorApplicationObject);
            Mvx.RegisterSingleton <IErrorSource>(errorApplicationObject);

            RegisterAppStart <JoinRoomViewModel>();
        }