当前位置: 首页>>代码示例>>C#>>正文


C# AsynchronousMessageQueue.Start方法代码示例

本文整理汇总了C#中MediaPortal.Common.Messaging.AsynchronousMessageQueue.Start方法的典型用法代码示例。如果您正苦于以下问题:C# AsynchronousMessageQueue.Start方法的具体用法?C# AsynchronousMessageQueue.Start怎么用?C# AsynchronousMessageQueue.Start使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MediaPortal.Common.Messaging.AsynchronousMessageQueue的用法示例。


在下文中一共展示了AsynchronousMessageQueue.Start方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Activated

        public void Activated(PluginRuntime pluginRuntime)
        {
            if (_isInitialized)
                return;

            _isInitialized = true;


            // All non-default media item aspects must be registered
            var miatr = ServiceRegistration.Get<IMediaItemAspectTypeRegistration>();
            miatr.RegisterLocallyKnownMediaItemAspectType(OnlineVideosAspect.Metadata);

            InitializeOnlineVideoSettings();

            // create a message queue for OnlineVideos to broadcast that the list of site utils was rebuild
            _messageQueue = new AsynchronousMessageQueue(this, new string[] { OnlineVideosMessaging.CHANNEL });
            _messageQueue.Start();

            // load and update sites in a background thread, it takes time and we are on the Main thread delaying MP2 startup
            ServiceRegistration.Get<IThreadPool>().Add(
                InitialSitesUpdateAndLoad,
                "OnlineVideos Initial Sites Load & Update",
                QueuePriority.Low,
                ThreadPriority.BelowNormal,
                AfterInitialLoad);
        }
开发者ID:offbyoneBB,项目名称:mp-onlinevideos2,代码行数:26,代码来源:OnlineVideosPlugin.cs

示例2: Activated

 public void Activated(PluginRuntime pluginRuntime)
 {
   messageQueue = new AsynchronousMessageQueue(this,
     new string[] {SystemMessaging.CHANNEL, PlayerManagerMessaging.CHANNEL});
   messageQueue.MessageReceived += OnMessageReceived;
   messageQueue.Start();
 }
开发者ID:chli,项目名称:AtmoLight,代码行数:7,代码来源:Plugin.cs

示例3: Install

 public void Install()
 {
   _messageQueue = new AsynchronousMessageQueue(this, new string[]
     {
         ServerConnectionMessaging.CHANNEL
     });
   _messageQueue.MessageReceived += OnMessageReceived;
   _messageQueue.Start();
 }
开发者ID:chekiI,项目名称:MediaPortal-2,代码行数:9,代码来源:ServerConnectionChangeNotificator.cs

示例4: SubscribeToMessages

 void SubscribeToMessages()
 {
   _messageQueue = new AsynchronousMessageQueue(this, new string[]
     {
         RemovableMediaMessaging.CHANNEL
     });
   _messageQueue.MessageReceived += OnMessageReceived;
   _messageQueue.Start();
 }
开发者ID:chekiI,项目名称:MediaPortal-2,代码行数:9,代码来源:RemovableDriveChangeNotificator.cs

示例5: SubscribeToMessages

 void SubscribeToMessages()
 {
   _messageQueue = new AsynchronousMessageQueue(this, new string[]
     {
        PlayerManagerMessaging.CHANNEL
     });
   _messageQueue.MessageReceived += OnMessageReceived;
   _messageQueue.Start();
 }
开发者ID:davinx,项目名称:MediaPortal-2,代码行数:9,代码来源:PlayerConfigurationAction.cs

示例6: CommonNotificationService

 public CommonNotificationService()
 {
   _messageQueue = new AsynchronousMessageQueue(this, new string[]
       {
         ImporterWorkerMessaging.CHANNEL,
       });
   _messageQueue.MessageReceived += OnMessageReceived;
   _messageQueue.Start();
 }
开发者ID:BigGranu,项目名称:MediaPortal-2,代码行数:9,代码来源:CommonNotificationService.cs

示例7: SubscribeToMessages

 void SubscribeToMessages()
 {
   if (_messageQueue == null)
   {
     _messageQueue = new AsynchronousMessageQueue(this, new[] { SystemMessaging.CHANNEL, ServerConnectionMessaging.CHANNEL });
     _messageQueue.PreviewMessage += OnMessageReceived;
     _messageQueue.Start();
   }
 }
开发者ID:aspik,项目名称:MediaPortal-2,代码行数:9,代码来源:NativeTvProxyRegistration.cs

示例8: SubscribeToMessages

 void SubscribeToMessages()
 {
   _messageQueue = new AsynchronousMessageQueue(this, new string[]
     {
         ServerConnectionMessaging.CHANNEL
     });
   _messageQueue.MessageReceived += OnMessageReceived;
   _messageQueue.Start();
 }
开发者ID:joconno4,项目名称:MediaPortal-2,代码行数:9,代码来源:AttachDetachAction.cs

示例9: ConnectionListenerService

 public ConnectionListenerService()
 {
   _messageQueue = new AsynchronousMessageQueue(this, new string[]
       {
         ServerConnectionMessaging.CHANNEL,
         NotificationServiceMessaging.CHANNEL,
       });
   _messageQueue.MessageReceived += OnMessageReceived;
   _messageQueue.Start();
 }
开发者ID:davinx,项目名称:MediaPortal-2,代码行数:10,代码来源:ConnectionListenerService.cs

示例10: OnlineVideosWorkflowModel

 public OnlineVideosWorkflowModel()
 {
     SiteGroupsList = new ItemsList();
     SitesList = new ItemsList();
     
     // create a message queue where we listen to changes to the sites
     _messageQueue = new AsynchronousMessageQueue(this, new string[] { OnlineVideosMessaging.CHANNEL });
     _messageQueue.MessageReceived += new MessageReceivedHandler(OnlineVideosMessageReceived);
     _messageQueue.Start();
 }
开发者ID:offbyoneBB,项目名称:mp-onlinevideos2,代码行数:10,代码来源:OnlineVideosWorkflowModel.cs

示例11: SubscribeToMessages

 private void SubscribeToMessages()
 {
   _messageQueue = new AsynchronousMessageQueue(this, new string[]
     {
         PlayerManagerMessaging.CHANNEL,
         PlayerContextManagerMessaging.CHANNEL,
         WorkflowManagerMessaging.CHANNEL,
     });
   _messageQueue.MessageReceived += OnMessageReceived;
   _messageQueue.Start();
 }
开发者ID:chekiI,项目名称:MediaPortal-2,代码行数:11,代码来源:SavePlaylistAction.cs

示例12: NotificationsModel

 public NotificationsModel()
 {
   _messageQueue = new AsynchronousMessageQueue(this, new string[]
     {
         NotificationServiceMessaging.CHANNEL,
         WorkflowManagerMessaging.CHANNEL,
     });
   _messageQueue.MessageReceived += OnMessageReceived;
   _messageQueue.Start();
   Update();
 }
开发者ID:chekiI,项目名称:MediaPortal-2,代码行数:11,代码来源:NotificationsModel.cs

示例13: WifiConnectionModel

    public WifiConnectionModel()
    {
      _isWifiAvailableProperty = new WProperty(typeof(bool), WlanClient.Instance.Interfaces.Length > 0);
      _networkList = new ItemsList();

      _queue = new AsynchronousMessageQueue(this, new string[]
        {
            WifiConnectionMessaging.CHANNEL,
        });
      _queue.MessageReceived += OnMessageReceived;
      _queue.Start();
    }
开发者ID:chekiI,项目名称:MediaPortal-2,代码行数:12,代码来源:WifiConnectionModel.cs

示例14: HomeServerModel

 public HomeServerModel()
 {
   _homeServerProperty = new WProperty(typeof(string), string.Empty);
   _isHomeServerAttachedProperty = new WProperty(typeof(bool), false);
   _isHomeServerConnectedProperty = new WProperty(typeof(bool), false);
   _messageQueue = new AsynchronousMessageQueue(this, new string[]
       {
         ServerConnectionMessaging.CHANNEL
       });
   _messageQueue.MessageReceived += OnMessageReceived;
   _messageQueue.Start();
   SynchronizeHomeServer();
 }
开发者ID:chekiI,项目名称:MediaPortal-2,代码行数:13,代码来源:HomeServerModel.cs

示例15: DoInstall

    internal void DoInstall()
    {
      RegisterKeyBindings();

      // Set initial background
      UpdateBackground();

      // Install message queue
      _messageQueue = new AsynchronousMessageQueue(this, new string[]
        {
           PlayerManagerMessaging.CHANNEL,
        });
      _messageQueue.MessageReceived += OnMessageReceived;
      _messageQueue.Start();
    }
开发者ID:chekiI,项目名称:MediaPortal-2,代码行数:15,代码来源:PlayerBackgroundManager.cs


注:本文中的MediaPortal.Common.Messaging.AsynchronousMessageQueue.Start方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。