protected virtual void SetupSystem() {
            const string dir = ".";
            Environment.CurrentDirectory = dir;
            Log.DebugFormat("Current dir: {0}", new FileInfo(dir).FullName);
            Log.DebugFormat("Real path: {0}", dir);
            EnsureDomainAssembliesAreLoaded();

            System = new NakedObjectsSystem {
                ReflectorInstaller = Reflector,
                Context = Context
            };
        }
        public void StartClient(NakedObjectsSystem system) {
            ISession session = system.AuthenticationManager.Authenticate();
            system.Connect(session);
            Inject(batchStartPoint);

            try {
                EnsureReady();
                SetSession();
                StartTransaction();
                batchStartPoint.Execute();
                EndTransaction();
            }
            catch (Exception) {
                // log.ErrorFormat("WorkItem: {0} threw exception {1}", wi.Id, e.Message);
                AbortTransaction();
            }
        }
 protected virtual void ProductSpecificStart(NakedObjectsSystem system) {}
Exemple #4
0
 protected override sealed void ProductSpecificStart(NakedObjectsSystem system) {
     if (StoreTransientsInSession) {
        system.ObjectPersistorInstaller.SetupMaps(new MvcIdentityAdapterHashMap(), new MvcPocoAdapterHashMap());
     }
 }
Exemple #5
0
 public void StartClient(NakedObjectsSystem system) {
     ISession session = system.AuthenticationManager.Authenticate();
     system.Connect(session);
 }
 protected override void ProductSpecificStart(NakedObjectsSystem system) {
     base.ProductSpecificStart(system);
     InitialiseLogging();
 }