private static IProcessHelper GetHelper() { if (helper == null) { switch (Configuration.GetPlatform()) { case Platform.Windows: helper = new ProcessHelperWindows(); break; case Platform.Mac: helper = new ProcessHelperMac(); break; case Platform.Linux: default: if (Configuration.IsCygwin) { helper = new ProcessHelperWindows(); } else { helper = new ProcessHelperLinux(); } break; } } return(helper); }
private static IProcessHelper GetHelper () { if (helper == null) { switch (Configuration.GetPlatform ()) { case Platform.Windows: helper = new ProcessHelperWindows (); break; case Platform.Mac: helper = new ProcessHelperMac (); break; case Platform.Linux: default: if (Configuration.IsCygwin) { helper = new ProcessHelperWindows (); } else { helper = new ProcessHelperLinux (); } break; } } return helper; }