Porting WebHooks over to Jellyfin

#1

I am trying to port this over to jellyfin. https://github.com/randomevents/Emby.WebHooks
I got all compiled as it should after changing a few lines although when Jellyfin tries to load the Plugin the error-message is:

[2019-05-18 21:39:11.104 +02:00] [ERR] Error getting exported types from “Emby.Webhooks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null”
System.TypeLoadException: Method ‘RunAsync’ in type ‘Emby.Webhooks.Webhooks’ from assembly ‘Emby.Webhooks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ does not have an implementation.
at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at Emby.Server.Implementations.ApplicationHost.GetTypes(IEnumerable`1 assemblies)+MoveNext()

#2

Seems like you have some function (RunAsync) declared but not actually implemented. Or maybe the server does not, I’m not sure.

#3

RunAsync is implemented but server seems to not like it.