public NetDocumentsAppConfig(IOptionsStorage options)
        {
            UserCacheLifeTime = 60;
            ExpirationCheckInterval = -1;
            var hostFromOptions = options.GetString("NetDocumentsHost");
            var host = this.Hosts.Where(a=>string.Equals(a.Name,hostFromOptions)).FirstOrDefault();
            if(host == null)
            {
                Workshare.Interop.Logging.Logger.LogError(string.Format("Wrong host name in the options {0}",hostFromOptions));
                host = this.Hosts.First();
            }
            Host = host.Name;
            ClosedFilesCheckInterval = 60;
            UserCacheLifeTime = 60;
            InstallerVersionUrl = "/neWeb2/appVersions.xml";
            AutoUpdateCheckInterval = 60;
            AutoUpdateEnabled = false;
            StampingFormat = "TBD";
            EchoRetention = 0;
            StampingLocation = StampLocation.EachPage;
            RootEchoFolderName = "WsNdInt";
            DontShowStampConflictDialog = false;
            PromptForAutomaticUpdates = false;
            OnConflictDefaultBehavior = OnConflictBehavior.DoNothing;
            EchoingFolderPath = Path.Combine(System.IO.Path.GetTempPath(), "Workshare", "NetDocs");

        }