public WatchSharing() { services = new WatchSharingServiceList(); if (Configuration.Streaming.WatchSharing.DebugEnabled) { services.Add(new WatchSharingDebug()); } if (Configuration.Streaming.WatchSharing.FollwitEnabled) { services.Add(new FollwitSharingProvider() { Configuration = Configuration.Streaming.WatchSharing.FollwitConfiguration }); } if (Configuration.Streaming.WatchSharing.TraktEnabled) { services.Add(new TraktSharingProvider() { Configuration = Configuration.Streaming.WatchSharing.TraktConfiguration }); } enabled = services.Any(); }
public WatchSharing() { services = new WatchSharingServiceList(); if (Configuration.Streaming.WatchSharing.DebugEnabled) { services.Add(new WatchSharingDebug()); } if (Configuration.Streaming.WatchSharing.FollwitEnabled) { services.Add(new FollwitSharingProvider() { Configuration = Configuration.Streaming.WatchSharing.FollwitConfiguration }); } if (Configuration.Streaming.WatchSharing.TraktEnabled) { services.Add(new TraktSharingProvider() { Configuration = Configuration.Streaming.WatchSharing.TraktConfiguration }); } services.ExecuteForAll(x => x.MediaService = Connections.MAS); enabled = services.Any(); }