Example #1
0
        /// <summary>
        /// Sets the provider status to failed.
        /// </summary>
        /// <param name="Provider"></param>
        public void SetProviderToFailed(StorageProviderTypes Provider)
        {
            if (!CopyState.ContainsKey(Provider))
            {
                CopyState.Add(Provider, new StorageProviderFileStatus(Provider));
            }

            var state = CopyState[Provider];

            state.SyncStatus = FileStatus.ProviderError;

            SetOverallStateFromCopyState();
        }