Example #1
0
        ///////////////////////////////////////////////////////////////////////

        #region Static "Factory" Methods
        public static AsynchronousBridge Create(
            IAsynchronousCallback callback,
            ref Result error
            )
        {
            if (callback == null)
            {
                error = "invalid asynchronous callback";
                return(null);
            }

            return(new AsynchronousBridge(callback));
        }
Example #2
0
        ///////////////////////////////////////////////////////////////////////

        #region Private Constructors
        private AsynchronousBridge(
            IAsynchronousCallback callback
            )
        {
            this.callback = callback;
        }