1 implementation of IMessageSource
Microsoft.ML.Core (1)
Environment\HostEnvironmentBase.cs (1)
156
protected abstract class PipeBase<TMessage> : ChannelProviderBase, IPipe<TMessage>,
IMessageSource
18 references to IMessageSource
Microsoft.ML.Core (18)
Environment\ConsoleEnvironment.cs (3)
54
public void PrintMessage(
IMessageSource
sender, ChannelMessage msg)
332
Action<
IMessageSource
, ChannelMessage> dispatch)
389
private void PrintMessage(
IMessageSource
src, ChannelMessage msg)
Environment\HostEnvironmentBase.cs (15)
161
protected readonly Action<
IMessageSource
, TMessage> Dispatch;
168
Action<
IMessageSource
, TMessage> dispatch)
218
Action<
IMessageSource
, ChannelMessage> dispatch)
271
Action<
IMessageSource
, TMessage> dispatch) :
297
private volatile Action<
IMessageSource
, TMessage> _listenerAction;
302
private readonly Action<
IMessageSource
, TMessage> _dispatch;
309
public Action<
IMessageSource
, TMessage> Dispatch { get { return _dispatch; } }
311
private void DispatchCore(
IMessageSource
sender, TMessage message)
316
public void AddListener(Action<
IMessageSource
, TMessage> listenerFunc)
322
public void RemoveListener(Action<
IMessageSource
, TMessage> listenerFunc)
452
Action<
IMessageSource
, TMessage> listenerAction,
IMessageSource
channel, TMessage message)
459
protected Action<
IMessageSource
, TMessage> GetDispatchDelegate<TMessage>()
497
public void AddListener<TMessage>(Action<
IMessageSource
, TMessage> listenerFunc)
504
public void RemoveListener<TMessage>(Action<
IMessageSource
, TMessage> listenerFunc)