Пример #1
0
 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();
 }
Пример #2
0
 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();
 }