private void WebDriveThread(object state) { do { try { using (var server = new WebShellFolderServer()) { var config = new ShellFolderConfiguration(); config.Logger = new Logger(this); server.Start(config); AppendText("Started listening on proxy id " + ShellFolderServer.ProxyId); if (ShellFolderServer.LocationFolderId != Guid.Empty) { Dispatcher.BeginInvoke(() => { Open.IsEnabled = true; }); } _serverStopEvent.WaitOne(); return; } } catch (Exception e) { AppendText(e.Message); Thread.Sleep(1000); } }while (true); }
public RootWebShellFolder(WebShellFolderServer server, ShellItemIdList idList) : base(idList) { Server = server ?? throw new ArgumentNullException(nameof(server)); }