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); }
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); }
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>(); }