pĆ¼nktchen 1261 Posted November 8, 2021 Share 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. Link to comment Share on other sites More sharing options...
Luke 37254 Posted November 8, 2021 Share Posted November 8, 2021 Hi, use IApplicationHost.SystemId 1 Link to comment Share on other sites More sharing options...
pĆ¼nktchen 1261 Posted November 8, 2021 Author Share 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? Link to comment Share on other sites More sharing options...
ebr 14959 Posted November 8, 2021 Share Posted November 8, 2021 Your Plugin() method should have it as an injected parameter, I believe... Link to comment Share on other sites More sharing options...
pĆ¼nktchen 1261 Posted November 8, 2021 Author Share 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. Link to comment Share on other sites More sharing options...
pĆ¼nktchen 1261 Posted November 8, 2021 Author Share Posted November 8, 2021 Found it!!! It's just "using MediaBrowser.Common" and not some of the sub namespaces like "using MediaBrowser.Common.Net"Ā Link to comment Share on other sites More sharing options...
Luke 37254 Posted November 9, 2021 Share Posted November 9, 2021 Well done. Link to comment Share on other sites More sharing options...
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