Skip to content
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.

Commit

Permalink
Update for 10.6.0 (#14)
Browse files Browse the repository at this point in the history
* Update for 10.6.0

* Bump version and targetAbi

* Fix non-generic ILogger injection

* 🐍
  • Loading branch information
oddstr13 authored Jul 18, 2020
1 parent 2897250 commit 0551dcf
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,19 @@ public class TestNotification : IReturnVoid
public class ServerApiEndpoints : IService
{
private readonly IUserManager _userManager;
private readonly ILogger _logger;
private readonly ILogger<ServerApiEndpoints> _logger;
private readonly ILogger<Notifier> _notifierLogger;

public ServerApiEndpoints(IUserManager userManager, ILogger logger)
public ServerApiEndpoints(IUserManager userManager, ILogger<ServerApiEndpoints> logger, ILogger<Notifier> notifierLogger)
{
_userManager = userManager;
_logger = logger;
_notifierLogger = notifierLogger;
}

public Task Post(TestNotification request)
{
return new Notifier(_logger).SendNotification(new UserNotification
return new Notifier(_notifierLogger).SendNotification(new UserNotification
{
Date = DateTime.UtcNow,
Description = "This is a test notification from Jellyfin Server",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<FileVersion>6.0.0.0</FileVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<FileVersion>7.0.0.0</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand All @@ -12,7 +12,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Jellyfin.Controller" Version="10.*"/>
<PackageReference Include="Jellyfin.Data" Version="10.*-*"/>
<PackageReference Include="Jellyfin.Controller" Version="10.*-*"/>
</ItemGroup>

</Project>
5 changes: 3 additions & 2 deletions MediaBrowser.Plugins.SmtpNotifications/Notifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Net.Mail;
using System.Threading;
using System.Threading.Tasks;
using Jellyfin.Data.Entities;
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Notifications;
using MediaBrowser.Plugins.SmtpNotifications.Configuration;
Expand All @@ -13,9 +14,9 @@ namespace MediaBrowser.Plugins.SmtpNotifications
{
public class Notifier : INotificationService
{
private readonly ILogger _logger;
private readonly ILogger<Notifier> _logger;

public Notifier(ILogger logger)
public Notifier(ILogger<Notifier> logger)
{
_logger = logger;
}
Expand Down
4 changes: 2 additions & 2 deletions build.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: "Email"
guid: "cfa0f7f4-4155-4d71-849b-d6598dc4c5bb"
version: "6.0.0.0"
targetAbi: "10.5.0.0"
version: "7.0.0.0"
targetAbi: "10.6.0.0"
owner: "jellyfin"
overview: "Send SMTP email notifications"
description: "Send SMTP email notifications"
Expand Down

0 comments on commit 0551dcf

Please sign in to comment.