public ClientConnection(IPropertyChangedReceiver receiver, ISettings settings) : base(settings) { _receiver = receiver; MeetingDetails = _vcSubject; Proxy.Observe<ChangedMessage>("onPropertyChanged").ObserveOn(RxApp.MainThreadScheduler).Subscribe(_receiver); var start = Proxy.Observe<VideoChatConfiguration>("startMeeting").Log(this, "Start Meeting Received"); var ended = Proxy.Observe("endMeeting").Log(this,"End Meeting Received").Select(_ => (VideoChatConfiguration)null); start.Merge(ended).Subscribe(_vcSubject); }
public ClientMainService(IClientConnection connection, ISharedDataService data, ISettings settings, IPropertyChangedTransmitter transmitter, IPropertyChangedReceiver receiver, INavigationService navigation) { _connection = connection; _data = data; _settings = settings; _transmitter = transmitter; _receiver = receiver; _navigation = navigation; }