Пример #1
0
        public void Create(Context context)
        {
            _context = context;
            var isSuccess = false;

            try {
                InternalCreate();
                isSuccess = true;
            } catch (Exception ex) {
                _log.WriteError(ex);
            } finally {
                StartCommand startCommand = new StartCommand(_context, _log);
                startCommand
                .SetNext(new DeleteTempFilesCommand())
                .SetNext(new DeleteSvnAuthenticationCachedItemsCommand());
                startCommand.Execute();
                if (isSuccess)
                {
                    PrintResultInfo();
                    Console.WriteLine("Work successfully done");
                }
            }
            Console.ReadLine();
        }