public static void EnsureInitializedForNetPipe()
        {
            EnsureInitializedForDiagnostics();

            if (pipeData == null)
            {
                lock (SyncRoot)
                {
                    if (pipeData == null)
                    {
                        pipeData = new NetPipeSectionData();
                    }
                }
            }

            if (DiagnosticUtility.ShouldTraceInformation)
            {
                ListenerTraceUtility.TraceEvent(TraceEventType.Information, ListenerTraceCode.ReadNetPipeConfig,
                    SR.GetString(SR.TraceCodeReadNetPipeConfig, pipeData.MaxPendingConnections, pipeData.MaxPendingAccepts, pipeData.ReceiveTimeout), null);
            }
        }
Esempio n. 2
0
        public static void EnsureInitializedForNetPipe()
        {
            EnsureInitializedForDiagnostics();

            if (pipeData == null)
            {
                lock (SyncRoot)
                {
                    if (pipeData == null)
                    {
                        pipeData = new NetPipeSectionData();
                    }
                }
            }

            if (DiagnosticUtility.ShouldTraceInformation)
            {
                ListenerTraceUtility.TraceEvent(TraceEventType.Information, ListenerTraceCode.ReadNetPipeConfig,
                                                SR.GetString(SR.TraceCodeReadNetPipeConfig, pipeData.MaxPendingConnections, pipeData.MaxPendingAccepts, pipeData.ReceiveTimeout), null);
            }
        }