BinaryMessageEncodingBindingElement.MaxSessionSize Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the maximum amount of memory available within a session for optimizing transmission procedures.
public:
property int MaxSessionSize { int get(); void set(int value); };
public int MaxSessionSize { get; set; }
member this.MaxSessionSize : int with get, set
Public Property MaxSessionSize As Integer
Property Value
The maximum size, in bytes, of a session. The default value is 2048 bytes.
Exceptions
The value is less than or equal to zero.
Examples
be.MaxSessionSize = 2048;
be.MaxSessionSize = 2048
Remarks
The .NET Binary Format for XML can optimize the transmission of strings when they are used in multiple messages within a session. Once a string is sent in a message, additional messages that contain that string can refer to it using only the string's ID. This requires that the strings and their IDs be stored in memory. This allows the ID to be retransmitted in subsequent messages instead of the entire string. This lookup increases the efficiency of message transmission when using the binary format. The MaxSessionSize gets and sets the maximum amount of memory that is allocated to store these strings.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기