public IWorkspace CreateWorkspace(IConnectionModel connectionModel) { var workspace = GetInstance <IWorkspaceBuilder>(); workspace.Initialise(connectionModel); return(workspace); }
public void Initialise(IConnectionModel connectionModel) { if (mConnectionModel != null) { throw new InvalidOperationException($"{nameof(Initialise)} can only be called once."); } mConnectionModel = connectionModel ?? throw new ArgumentNullException(nameof(connectionModel)); // Tell model we want to monitor the calls as dictated by the workspace MonitoredCalls .Transform(call => call.Call.InstrumentedCallId) .OnItemAdded(mConnectionModel.StartMonitoringCall) .OnItemRemoved(mConnectionModel.StopMonitoringCall) .Subscribe(); }
public FlightButtonsViewModel(IConnectionModel model) { this.model = model; }