| File: System\ServiceModel\Channels\TransportDefaults.cs | Web Access |
| Project: ..\..\..\src\System.ServiceModel.NetNamedPipe\src\System.ServiceModel.NetNamedPipe.csproj (System.ServiceModel.NetNamedPipe) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Net.Security; namespace System.ServiceModel.Channels { internal static class NPTransportDefaults { public const long MaxReceivedMessageSize = 65536; public const long MaxBufferPoolSize = 512 * 1024; public const int MaxBufferSize = (int)MaxReceivedMessageSize; } internal static class ConnectionOrientedTransportDefaults { public const string ConnectionPoolGroupName = "default"; public static TimeSpan IdleTimeout => TimeSpan.FromMinutes(2); public const int MaxOutboundConnectionsPerEndpoint = 10; public const ProtectionLevel ProtectionLevel = Net.Security.ProtectionLevel.EncryptAndSign; public const TransferMode TransferMode = ServiceModel.TransferMode.Buffered; } internal static class ApplicationContainerSettingsDefaults { internal const string CurrentUserSessionDefaultString = "CurrentSession"; internal const string Session0ServiceSessionString = "ServiceSession"; internal const string PackageFullNameDefaultString = null; /// <summary> /// The current session will be used for resource lookup. /// </summary> internal const int CurrentSession = -1; /// <summary> /// Session 0 is the NT Service session /// </summary> internal const int ServiceSession = 0; } }