ZeroInstall.DesktopIntegration.SyncIntegrationManager.SyncIntegrationManager C# (CSharp) Method

SyncIntegrationManager() public method

Creates a new sync manager. Performs Mutex-based locking!
A problem occurs while accessing the file. Read or write access to the file is not permitted or another desktop integration class is currently active. A problem occurs while deserializing the XML data.
public SyncIntegrationManager ( SyncServer server, [ cryptoKey, Feed>.[ feedRetriever, [ handler, bool machineWide = false ) : System
server SyncServer Access information for the sync server.
cryptoKey [ The local key used to encrypt data before sending it to the .
feedRetriever Feed>.[ Callback method used to retrieve additional s on demand.
handler [ A callback object used when the the user is to be informed about the progress of long-running operations such as downloads.
machineWide bool Apply operations machine-wide instead of just for the current user.
return System
        public SyncIntegrationManager(SyncServer server, [CanBeNull] string cryptoKey, [NotNull] Converter<FeedUri, Feed> feedRetriever, [NotNull] ITaskHandler handler, bool machineWide = false)
            : base(handler, machineWide)
        {
            #region Sanity checks
            if (server.Uri == null) throw new ArgumentNullException(nameof(server));
            if (feedRetriever == null) throw new ArgumentNullException(nameof(feedRetriever));
            #endregion

            _server = server;
            _cryptoKey = cryptoKey;
            _feedRetriever = feedRetriever;

            if (File.Exists(AppListPath + AppListLastSyncSuffix)) _appListLastSync = XmlStorage.LoadXml<AppList>(AppListPath + AppListLastSyncSuffix);
            else
            {
                _appListLastSync = new AppList();
                _appListLastSync.SaveXml(AppListPath + AppListLastSyncSuffix);
            }
        }

Same methods

SyncIntegrationManager::SyncIntegrationManager ( [ appListPath, SyncServer server, Feed>.[ feedRetriever, [ handler, bool machineWide = false ) : System