Method Process
- Namespace
- OpenEphys.Miniscope.Gui
- Assembly
- OpenEphys.Miniscope.Gui.dll
Process<TSource>(IObservable<TSource>, IObservable<MiniscopeLog>)
Captures the MiniscopeLog instance from logSource, opens its log file
when source is subscribed, and closes it when unsubscribed, forwarding the elements
unchanged.
public IObservable<TSource> Process<TSource>(IObservable<TSource> source, IObservable<MiniscopeLog> logSource)
Parameters
sourceIObservable<TSource>The sequence whose subscription lifetime defines the recording window.
logSourceIObservable<MiniscopeLog>The shared log instance (typically a
BehaviorSubject) whose file is opened for the duration of the recording. The first emitted instance is cached for the lifetime of the subscription.
Returns
- IObservable<TSource>
An observable sequence identical to
source.
Type Parameters
TSourceThe type of the elements in the
sourcesequence.