pünktchen 1409 Posted November 8, 2021 Posted November 8, 2021 @Luke How do i get the server id in a c# plugin? I don't find any suitable interface for that.
pünktchen 1409 Posted November 8, 2021 Author Posted November 8, 2021 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?
ebr 16169 Posted November 8, 2021 Posted November 8, 2021 Your Plugin() method should have it as an injected parameter, I believe...
pünktchen 1409 Posted November 8, 2021 Author Posted November 8, 2021 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 1409 Posted November 8, 2021 Author Posted November 8, 2021 Found it!!! It's just "using MediaBrowser.Common" and not some of the sub namespaces like "using MediaBrowser.Common.Net"
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now