internal bool UnregisterPrefix(string uriPrefix)
        {
            _logger.LogInformation(LoggerEventIds.UnregisteringPrefix, "Stop listening on prefix: {0}", uriPrefix);
            CheckDisposed();

            var statusCode = HttpApi.HttpRemoveUrlFromUrlGroup(Id, uriPrefix, 0);

            if (statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_NOT_FOUND)
            {
                return(false);
            }
            return(true);
        }
示例#2
0
        internal bool UnregisterPrefix(string uriPrefix)
        {
            LogHelper.LogDebug(_logger, "Stop listening on prefix: " + uriPrefix);
            CheckDisposed();

            var statusCode = HttpApi.HttpRemoveUrlFromUrlGroup(Id, uriPrefix, 0);

            if (statusCode == UnsafeNclNativeMethods.ErrorCodes.ERROR_NOT_FOUND)
            {
                return(false);
            }
            return(true);
        }