diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-04-10 11:56:36 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-04-10 11:56:36 -0400 |
| commit | ff1db0a17341345cb5d625b9a44d02981ce131bf (patch) | |
| tree | 93f6d3ce16da5f9b930aad05731d74f67f521521 /MediaBrowser.Controller/Library | |
| parent | d8263c70574c6cb27329e270aebe3ba231f5e9ce (diff) | |
resharper suggestions in controller project
Diffstat (limited to 'MediaBrowser.Controller/Library')
| -rw-r--r-- | MediaBrowser.Controller/Library/ILibraryManager.cs | 5 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Library/Profiler.cs | 20 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Library/TVUtils.cs | 4 |
3 files changed, 13 insertions, 16 deletions
diff --git a/MediaBrowser.Controller/Library/ILibraryManager.cs b/MediaBrowser.Controller/Library/ILibraryManager.cs index a9b8f607d..617a6c818 100644 --- a/MediaBrowser.Controller/Library/ILibraryManager.cs +++ b/MediaBrowser.Controller/Library/ILibraryManager.cs @@ -1,6 +1,5 @@ using MediaBrowser.Controller.Entities; using MediaBrowser.Controller.IO; -using MediaBrowser.Controller.Persistence; using MediaBrowser.Controller.Resolvers; using MediaBrowser.Controller.Sorting; using MediaBrowser.Model.Entities; @@ -20,9 +19,9 @@ namespace MediaBrowser.Controller.Library event EventHandler<ChildrenChangedEventArgs> LibraryChanged; /// <summary> - /// Raises the <see cref="E:LibraryChanged" /> event. + /// Reports the library changed. /// </summary> - /// <param name="args">The <see cref="ChildrenChangedEventArgs" /> instance containing the event data.</param> + /// <param name="args">The <see cref="ChildrenChangedEventArgs"/> instance containing the event data.</param> void ReportLibraryChanged(ChildrenChangedEventArgs args); /// <summary> diff --git a/MediaBrowser.Controller/Library/Profiler.cs b/MediaBrowser.Controller/Library/Profiler.cs index 469d8ef18..d3a754dc9 100644 --- a/MediaBrowser.Controller/Library/Profiler.cs +++ b/MediaBrowser.Controller/Library/Profiler.cs @@ -12,16 +12,16 @@ namespace MediaBrowser.Controller.Library /// <summary> /// The name /// </summary> - readonly string name; + readonly string _name; /// <summary> /// The stopwatch /// </summary> - readonly Stopwatch stopwatch; + readonly Stopwatch _stopwatch; /// <summary> /// The _logger /// </summary> - private ILogger _logger; + private readonly ILogger _logger; /// <summary> /// Initializes a new instance of the <see cref="Profiler" /> class. @@ -30,12 +30,12 @@ namespace MediaBrowser.Controller.Library /// <param name="logger">The logger.</param> public Profiler(string name, ILogger logger) { - this.name = name; + this._name = name; _logger = logger; - stopwatch = new Stopwatch(); - stopwatch.Start(); + _stopwatch = new Stopwatch(); + _stopwatch.Start(); } #region IDisposable Members @@ -56,17 +56,17 @@ namespace MediaBrowser.Controller.Library { if (dispose) { - stopwatch.Stop(); + _stopwatch.Stop(); string message; - if (stopwatch.ElapsedMilliseconds > 300000) + if (_stopwatch.ElapsedMilliseconds > 300000) { message = string.Format("{0} took {1} minutes.", - name, ((float)stopwatch.ElapsedMilliseconds / 60000).ToString("F")); + _name, ((float)_stopwatch.ElapsedMilliseconds / 60000).ToString("F")); } else { message = string.Format("{0} took {1} seconds.", - name, ((float)stopwatch.ElapsedMilliseconds / 1000).ToString("#0.000")); + _name, ((float)_stopwatch.ElapsedMilliseconds / 1000).ToString("#0.000")); } _logger.Info(message); } diff --git a/MediaBrowser.Controller/Library/TVUtils.cs b/MediaBrowser.Controller/Library/TVUtils.cs index d6a922ff4..6ddb1ba5f 100644 --- a/MediaBrowser.Controller/Library/TVUtils.cs +++ b/MediaBrowser.Controller/Library/TVUtils.cs @@ -277,9 +277,7 @@ namespace MediaBrowser.Controller.Library }; } - return new List<DayOfWeek> - { - }; + return new List<DayOfWeek>(); } return null; } |
