public void Execute(string[] args) { ScriptRecorder recorder = Environment.GetScriptRecorder(); recorder.BeginRecording(); Console.WriteLine("Recording..."); }
public void Execute(string[] args) { ScriptRecorder recorder = Environment.GetScriptRecorder(); recorder.Save(args[0]); Console.WriteLine("Script saved."); }
static Environment() { DataStore = new InMemoryDataStore(); Logger = new ConsoleWindowLogger(); CommandBuilders = new Dictionary <string, ICommandBuilder>(); SystemCommands = new Dictionary <string, ISystemCommand>(); ScriptRecorder = new ScriptRecorder(); RegsiterSystemCommands(); RegsiterCommandBuilders(); }
static Environment() { CommandBuilders = new Dictionary <string, ICommandBuilder>(); SystemCommands = new Dictionary <string, ISystemCommand>(); ConsoleViews = new Dictionary <string, IConsoleView>(); ScriptRecorder = new ScriptRecorder(); RegsiterSystemCommands(); RegsiterCommandBuilders(); RegisterViews(); ContextFactory = new ContextFactory <AsbaContext>("AsbaBank"); currentUserSession = new CurrentUserSession(new GenericIdentity(System.Environment.UserDomainName)); }
static Environment() { Logger = new ConsoleWindowLogger(); CommandBuilders = new Dictionary <string, ICommandBuilder>(); SystemCommands = new Dictionary <string, ISystemCommand>(); ScriptRecorder = new ScriptRecorder(); RegsiterSystemCommands(); RegsiterCommandBuilders(); Database.SetInitializer(new AsbaContextInitializer()); ContextFactory = new ContextFactory <AsbaContext>("AsbaBank"); }