本文整理汇总了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);
}
示例2: Activated
public void Activated(PluginRuntime pluginRuntime)
{
messageQueue = new AsynchronousMessageQueue(this,
new string[] {SystemMessaging.CHANNEL, PlayerManagerMessaging.CHANNEL});
messageQueue.MessageReceived += OnMessageReceived;
messageQueue.Start();
}
示例3: Install
public void Install()
{
_messageQueue = new AsynchronousMessageQueue(this, new string[]
{
ServerConnectionMessaging.CHANNEL
});
_messageQueue.MessageReceived += OnMessageReceived;
_messageQueue.Start();
}
示例4: SubscribeToMessages
void SubscribeToMessages()
{
_messageQueue = new AsynchronousMessageQueue(this, new string[]
{
RemovableMediaMessaging.CHANNEL
});
_messageQueue.MessageReceived += OnMessageReceived;
_messageQueue.Start();
}
示例5: SubscribeToMessages
void SubscribeToMessages()
{
_messageQueue = new AsynchronousMessageQueue(this, new string[]
{
PlayerManagerMessaging.CHANNEL
});
_messageQueue.MessageReceived += OnMessageReceived;
_messageQueue.Start();
}
示例6: CommonNotificationService
public CommonNotificationService()
{
_messageQueue = new AsynchronousMessageQueue(this, new string[]
{
ImporterWorkerMessaging.CHANNEL,
});
_messageQueue.MessageReceived += OnMessageReceived;
_messageQueue.Start();
}
示例7: SubscribeToMessages
void SubscribeToMessages()
{
if (_messageQueue == null)
{
_messageQueue = new AsynchronousMessageQueue(this, new[] { SystemMessaging.CHANNEL, ServerConnectionMessaging.CHANNEL });
_messageQueue.PreviewMessage += OnMessageReceived;
_messageQueue.Start();
}
}
示例8: SubscribeToMessages
void SubscribeToMessages()
{
_messageQueue = new AsynchronousMessageQueue(this, new string[]
{
ServerConnectionMessaging.CHANNEL
});
_messageQueue.MessageReceived += OnMessageReceived;
_messageQueue.Start();
}
示例9: ConnectionListenerService
public ConnectionListenerService()
{
_messageQueue = new AsynchronousMessageQueue(this, new string[]
{
ServerConnectionMessaging.CHANNEL,
NotificationServiceMessaging.CHANNEL,
});
_messageQueue.MessageReceived += OnMessageReceived;
_messageQueue.Start();
}
示例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();
}
示例11: SubscribeToMessages
private void SubscribeToMessages()
{
_messageQueue = new AsynchronousMessageQueue(this, new string[]
{
PlayerManagerMessaging.CHANNEL,
PlayerContextManagerMessaging.CHANNEL,
WorkflowManagerMessaging.CHANNEL,
});
_messageQueue.MessageReceived += OnMessageReceived;
_messageQueue.Start();
}
示例12: NotificationsModel
public NotificationsModel()
{
_messageQueue = new AsynchronousMessageQueue(this, new string[]
{
NotificationServiceMessaging.CHANNEL,
WorkflowManagerMessaging.CHANNEL,
});
_messageQueue.MessageReceived += OnMessageReceived;
_messageQueue.Start();
Update();
}
示例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();
}
示例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();
}
示例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();
}