Ejemplo n.º 1
0
        public static void EnsureInitializedForNetTcp()
        {
            EnsureInitializedForDiagnostics();

            if (tcpData == null)
            {
                lock (SyncRoot)
                {
                    if (tcpData == null)
                    {
                        tcpData = new NetTcpSectionData();
                    }
                }
            }

            if (DiagnosticUtility.ShouldTraceInformation)
            {
                ListenerTraceUtility.TraceEvent(TraceEventType.Information, ListenerTraceCode.ReadNetTcpConfig,
                    SR.GetString(SR.TraceCodeReadNetTcpConfig, tcpData.ListenBacklog, tcpData.MaxPendingConnections,
                    tcpData.MaxPendingAccepts, tcpData.ReceiveTimeout, tcpData.TeredoEnabled), null);
            }
        }
Ejemplo n.º 2
0
        public static void EnsureInitializedForNetTcp()
        {
            EnsureInitializedForDiagnostics();

            if (tcpData == null)
            {
                lock (SyncRoot)
                {
                    if (tcpData == null)
                    {
                        tcpData = new NetTcpSectionData();
                    }
                }
            }

            if (DiagnosticUtility.ShouldTraceInformation)
            {
                ListenerTraceUtility.TraceEvent(TraceEventType.Information, ListenerTraceCode.ReadNetTcpConfig,
                                                SR.GetString(SR.TraceCodeReadNetTcpConfig, tcpData.ListenBacklog, tcpData.MaxPendingConnections,
                                                             tcpData.MaxPendingAccepts, tcpData.ReceiveTimeout, tcpData.TeredoEnabled), null);
            }
        }