public WorkspaceManager(string taskGuid, string workingDirectory) { TaskGuid = taskGuid; WorkingDirectory = workingDirectory; if (!Directory.Exists(WorkingDirectory)) Directory.CreateDirectory(WorkingDirectory); if (!Directory.Exists(CompositionDirectory)) Directory.CreateDirectory(CompositionDirectory); if (!Directory.Exists(HomeDirectory)) Directory.CreateDirectory(HomeDirectory); if (!Directory.Exists(LogDirectory)) Directory.CreateDirectory(LogDirectory); logger = new Logger(LogDirectory + @"\workspace.log"); logger.Info("Workspace created."); }
private static void ExecLogging1(Logger logger) { logger.Info("test 1"); logger.Info(new InvalidConstraintException("boo"), "test2"); }
private static void ExecLogging1(Logger logger) { logger.Info("test 1"); //we wait 10 ms, because after a cold boot, the messages are arrived in the same moment and the order can change. Thread.Sleep(10); logger.Info(new InvalidConstraintException("boo"), "test 2"); }
public WcfServiceHost(Logger logger) : base(logger) { logger.Info("Starting Wcf Service Host"); }