Espera.Core.LocalSong.LoadToCache C# (CSharp) Method

LoadToCache() private method

private LoadToCache ( ) : void
return void
        internal override void LoadToCache()
        {
            if (this.IsRemovable)
            {
                try
                {
                    this.LoadToTempFile();
                    this.IsCached = true;
                    this.OnCachingCompleted(EventArgs.Empty);
                }

                catch (IOException)
                {
                    this.OnCachingFailed(EventArgs.Empty);
                }
            }

            else
            {
                this.StreamingPath = this.OriginalPath;
                this.IsCached = true;
                this.OnCachingCompleted(EventArgs.Empty);
            }
        }