/// ------------------------------------------------------------------------------------
        /// <summary>
        /// Gets the location for the provider for the specified project and provider type.
        /// If the providerType is not supported, return null for the Uri.
        /// </summary>
        /// ------------------------------------------------------------------------------------
        public Uri GetProviderLocation(string projhandle, string providerType)
        {
            LexicalProviderManager.ResetLexicalProviderTimer();

            if (providerType == kLexicalProviderType)
            {
                Uri projUri = new Uri("net.pipe://localhost/" + FwUtils.GeneratePipeHandle(projhandle) + ":LP");
                LexicalProviderManager.StartProvider(projUri, new LexicalProviderImpl(m_cache), typeof(ILexicalProvider));
                return(projUri);
            }

            return(null);
        }
Пример #2
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Gets the location for the provider for the specified project and provider type.
        /// If the providerType is not supported, return null for the Uri.
        /// </summary>
        /// ------------------------------------------------------------------------------------
        public Uri GetProviderLocation(string projhandle, string providerType)
        {
            LexicalProviderManager.ResetLexicalProviderTimer();

            if (providerType == kLexicalProviderType)
            {
                var url     = LexicalProviderManager.UrlPrefix + LexicalProviderManager.FixPipeHandle(FwUtils.GeneratePipeHandle(projhandle + ":LP"));
                Uri projUri = new Uri(url);
                LexicalProviderManager.StartProvider(projUri, new LexicalProviderImpl(m_cache), typeof(ILexicalProvider));
                return(projUri);
            }

            return(null);
        }