コード例 #1
0
        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
            };
        }
コード例 #2
0
        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();
            }
        }
コード例 #3
0
 protected virtual void ProductSpecificStart(NakedObjectsSystem system) {}
コード例 #4
0
 protected override sealed void ProductSpecificStart(NakedObjectsSystem system) {
     if (StoreTransientsInSession) {
        system.ObjectPersistorInstaller.SetupMaps(new MvcIdentityAdapterHashMap(), new MvcPocoAdapterHashMap());
     }
 }
コード例 #5
0
 public void StartClient(NakedObjectsSystem system) {
     ISession session = system.AuthenticationManager.Authenticate();
     system.Connect(session);
 }
コード例 #6
0
 protected override void ProductSpecificStart(NakedObjectsSystem system) {
     base.ProductSpecificStart(system);
     InitialiseLogging();
 }