static void Main(string[] args) { // Uncomment this line of code to allow for debugging // while (!System.Diagnostics.Debugger.IsAttached) { System.Threading.Thread.Sleep(100); } FsIpcConnection instance = FsIpcConnection.GetInstance(); SDWrapper.Run(args); }
public static FsIpcConnection GetInstance() { if (_instance != null) { return(_instance); } lock (Lock) { if (_instance == null) { _instance = new FsIpcConnection(); } } return(_instance); }