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();
            }
        }
Example #2
0
 public void StartClient(NakedObjectsSystem system) {
     ISession session = system.AuthenticationManager.Authenticate();
     system.Connect(session);
 }