Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 894 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 894 Bytes

ReactiveDuplexChannelFactory

Extend DuplexChannelFactory to support IObservalbe

This is a .NET Standard project - part of learning the process of creating muliti-platform Nuget

Usage is very simple just replace DuplexChannelFactory to ReactiveDuplexChannelFactory

Build status

Nuget

from MyGet

example:

ReactiveDuplexChannelFactory<IStockQuoteService, IStockQuoteServiceCallback> duplexChannel = 
new ReactiveDuplexChannelFactory<IStockQuoteService, IStockQuoteServiceCallback>(binding,"ws://localhost:3201/StockQuoteService.svc");

duplexChannel.AsObservable<Quote>().Subscribe(quote => Console.WriteLine($"{quote.Code}-{quote.Price}"));