Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public RootWebShellFolder(WebShellFolderServer server, ShellItemIdList idList)
     : base(idList)
 {
     Server = server ?? throw new ArgumentNullException(nameof(server));
 }