mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-13 08:37:07 +00:00
Fixed 3 different CA1051 warnings. Changed them to auto properties and rearranged the members to fit styling rules.
Co-authored-by: Derpipose <90276123+Derpipose@users.noreply.github.com>
This commit is contained in:
parent
378ba937b6
commit
a014cb538e
2 changed files with 9 additions and 8 deletions
|
|
@ -23,9 +23,6 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
{
|
||||
private static readonly char[] _separators = ['|', ','];
|
||||
|
||||
public int? OutputAudioBitrate;
|
||||
public int? OutputAudioChannels;
|
||||
|
||||
private TranscodeReason? _transcodeReasons = null;
|
||||
|
||||
public EncodingJobInfo(TranscodingJobType jobType)
|
||||
|
|
@ -37,6 +34,10 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
SupportedSubtitleCodecs = Array.Empty<string>();
|
||||
}
|
||||
|
||||
public int? OutputAudioBitrate { get; set; }
|
||||
|
||||
public int? OutputAudioChannels { get; set; }
|
||||
|
||||
public TranscodeReason TranscodeReasons
|
||||
{
|
||||
get
|
||||
|
|
|
|||
|
|
@ -40,11 +40,6 @@ namespace MediaBrowser.Controller.Net
|
|||
/// </summary>
|
||||
private readonly List<(IWebSocketConnection Connection, CancellationTokenSource CancellationTokenSource, TStateType State)> _activeConnections = new();
|
||||
|
||||
/// <summary>
|
||||
/// The logger.
|
||||
/// </summary>
|
||||
protected readonly ILogger<BasePeriodicWebSocketListener<TReturnDataType, TStateType>> Logger;
|
||||
|
||||
private readonly Task _messageConsumerTask;
|
||||
|
||||
protected BasePeriodicWebSocketListener(ILogger<BasePeriodicWebSocketListener<TReturnDataType, TStateType>> logger)
|
||||
|
|
@ -56,6 +51,11 @@ namespace MediaBrowser.Controller.Net
|
|||
_messageConsumerTask = HandleMessages();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Logger.
|
||||
/// </summary>
|
||||
protected ILogger<BasePeriodicWebSocketListener<TReturnDataType, TStateType>> Logger { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the type used for the messages sent to the client.
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue