public ConnectHandle ConnectSendMessageObserver <T>(ISendMessageObserver <T> observer) where T : class { var self = _messageObservers as SendMessageObservable <T>; if (self == null) { throw new InvalidOperationException("The connection type is invalid: " + TypeMetadataCache <T> .ShortName); } return(self.Connect(observer)); }
public ConnectHandle ConnectSendMessageObserver <T>(ISendMessageObserver <T> observer) where T : class { if (observer == null) { throw new ArgumentNullException(nameof(observer)); } ISendMessageObserverConnector messagePipe = GetPipe <T, ISendMessageObserverConnector>(); return(messagePipe.ConnectSendMessageObserver(observer)); }
public ConnectHandle ConnectSendMessageObserver <T>(ISendMessageObserver <T> observer) where T : class { throw new NotImplementedException(); }
ConnectHandle ISendMessageObserverConnector.ConnectSendMessageObserver <TMessage>(ISendMessageObserver <TMessage> observer) { return(_filter.ConnectSendMessageObserver(observer)); }
ConnectHandle ISendMessageObserverConnector.ConnectSendMessageObserver <T>(ISendMessageObserver <T> observer) { return(GetPipe <T, ISendMessageObserverConnector>().ConnectSendMessageObserver(observer)); }
ConnectHandle ISendMessageObserverConnector.ConnectSendMessageObserver <T>(ISendMessageObserver <T> observer) { if (_output.Value is IMessageSendPipe <T> connector) { return(connector.ConnectSendMessageObserver(observer)); } throw new ArgumentException($"The filter is not of the specified type: {typeof(T).Name}", nameof(observer)); }
public ConnectHandle ConnectSendMessageObserver(ISendMessageObserver <TOutput> observer) { return(_observers.Connect(observer)); }