Exemplo n.º 1
0
 /// <summary>
 /// Callback used to pass the postprocessor a reference to the object
 /// that will run the postprocessor's <code>IPostProcessor.Process</code>
 /// method when the client requires.
 /// </summary>
 public void SetCallback(IRepeatedPostprocessorRunner runner)
 {
     lock (_gate)
     {
         _callback = runner;
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Used when a new postprocessing of the last received result is requested.
        /// </summary>
        public void Update()
        {
            IRepeatedPostprocessorRunner callback = GetCallback();

            if (callback != null)
            {
                callback.Update();
            }
        }