public static IStreamRelativeAccess GetOptPreviousExprRelativeAccess(AgentInstanceViewFactoryChainContext agentInstanceViewFactoryContext) { IStreamRelativeAccess relativeAccessByEvent = null; if (agentInstanceViewFactoryContext.PreviousNodeGetter != null) { var getter = (RelativeAccessByEventNIndexMap)agentInstanceViewFactoryContext.PreviousNodeGetter; relativeAccessByEvent = new IStreamRelativeAccess(getter.Updated); getter.Updated(relativeAccessByEvent, null); } return(relativeAccessByEvent); }
public ViewUpdatedCollection GetOptPreviousExprRelativeAccess( AgentInstanceViewFactoryChainContext agentInstanceViewFactoryContext) { IStreamRelativeAccess relativeAccessByEvent = null; if (agentInstanceViewFactoryContext.PreviousNodeGetter != null) { var getter = (RelativeAccessByEventNIndexGetter) agentInstanceViewFactoryContext.PreviousNodeGetter; var observer = (IStreamRelativeAccessUpdateObserver) getter; relativeAccessByEvent = new IStreamRelativeAccess(observer); observer.Updated(relativeAccessByEvent, null); } return relativeAccessByEvent; }