C# Класс GamingInterface.SocketAsyncEventArgsPool

Represents a collection of resusable SocketAsyncEventArgs objects.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Pop ( ) : SocketAsyncEventArgs

Removes a SocketAsyncEventArgs instance from the pool

Push ( SocketAsyncEventArgs item ) : void

Add a SocketAsyncEventArg instance to the pool

SocketAsyncEventArgsPool ( int capacity ) : System

Initializes the object pool to the specified size

Описание методов

Pop() публичный Метод

Removes a SocketAsyncEventArgs instance from the pool
public Pop ( ) : SocketAsyncEventArgs
Результат System.Net.Sockets.SocketAsyncEventArgs

Push() публичный Метод

Add a SocketAsyncEventArg instance to the pool
public Push ( SocketAsyncEventArgs item ) : void
item System.Net.Sockets.SocketAsyncEventArgs The SocketAsyncEventArgs instance to add to the pool
Результат void

SocketAsyncEventArgsPool() публичный Метод

Initializes the object pool to the specified size
public SocketAsyncEventArgsPool ( int capacity ) : System
capacity int The maximum number of SocketAsyncEventArgs objects the pool can hold
Результат System