Exemple #1
0
        private bool TryGetDispatcherRemotable(out IFilingDispatcherRemotable remotable, out string errorMsg)
        {
            remotable = null;
            errorMsg  = null;
            try
            {
                remotable = (IFilingDispatcherRemotable)Activator.GetObject(typeof(IFilingDispatcherRemotable), myDispatcherUri);
            }
            catch
            {
            }

            if (remotable == null)
            {
                errorMsg = "Unable to connect to the Dispatcher";
                return(false);
            }

            return(true);
        }
        private bool TryGetDispatcherRemotable(out IFilingDispatcherRemotable remotable, out string errorMsg)
        {
            remotable = null;
            errorMsg = null;
            try
            {
                remotable = (IFilingDispatcherRemotable)Activator.GetObject(typeof(IFilingDispatcherRemotable), myDispatcherUri);
            }
            catch
            {
            }

            if (remotable == null)
            {
                errorMsg = "Unable to connect to the Dispatcher";
                return false;
            }

            return true;
        }