Jump to content

Get server ID in C# plugin


Recommended Posts

pünktchen
Posted

@Luke How do i get the server id in a c# plugin? I don't find any suitable interface for that.

Posted

Hi, use IApplicationHost.SystemId

  • Thanks 1
pünktchen
Posted
21 hours ago, Luke said:

Hi, use IApplicationHost.SystemId

If you now tell me where i get IApplicationHost i'll be happy. What using directive is needed for this?

Posted

Your Plugin() method should have it as an injected parameter, I believe...

pünktchen
Posted

Sorry i can't follow. How should i inject something as a paramater when the parameter is the thing i don't know how get from Emby's api.

pünktchen
Posted

Found it!!! It's just "using MediaBrowser.Common" and not some of the sub namespaces like "using MediaBrowser.Common.Net" 😵

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...