Class ISteamMatchmakingServerListResponse
Managed implementation of the C++ ISteamMatchmakingServerListResponse callback sink
passed to the SteamMatchmakingServers server-list requests. Steam calls it while
the request is active, including again after RefreshQuery(HServerListRequest).
Dispose it once ISteamMatchmakingServerListResponse.RefreshCompleteHandler has fired, or after
CancelQuery(HServerListRequest) or ReleaseRequest(HServerListRequest),
and not before. An undisposed sink is never collected.
Handlers are invoked on the thread that dispatches the pipe: the package's callback thread, or the thread that calls RunFrameCallbacks(bool) or performs its own dispatch. Unlike Subscribe<T>(Action<T>, bool) handlers, they are not forwarded to the main thread, so calls to Unity APIs must be marshalled to it. Handler exceptions are caught and routed to ExceptionHandler.
Implements
Inherited Members
Namespace: Unity.Steamworks.Interop
Assembly: Unity.Steamworks.Interop.dll
Syntax
public sealed class ISteamMatchmakingServerListResponse : IDisposable
Constructors
ISteamMatchmakingServerListResponse(ServerRespondedHandler, ServerFailedToRespondHandler, RefreshCompleteHandler)
Creates the native object that Steam calls back into. Every handler is required.
Declaration
public ISteamMatchmakingServerListResponse(ISteamMatchmakingServerListResponse.ServerRespondedHandler onServerResponded, ISteamMatchmakingServerListResponse.ServerFailedToRespondHandler onServerFailedToRespond, ISteamMatchmakingServerListResponse.RefreshCompleteHandler onRefreshComplete)
Parameters
| Type | Name | Description |
|---|---|---|
| ISteamMatchmakingServerListResponse.ServerRespondedHandler | onServerResponded | Called as each server answers. |
| ISteamMatchmakingServerListResponse.ServerFailedToRespondHandler | onServerFailedToRespond | Called for each server that did not answer. |
| ISteamMatchmakingServerListResponse.RefreshCompleteHandler | onRefreshComplete | Called once the refresh has finished. |
Methods
Dispose()
Frees the native response object and releases the handle that kept this sink alive.
Declaration
public void Dispose()
Operators
explicit operator IntPtr(ISteamMatchmakingServerListResponse)
The native interface pointer the flat API takes for this sink.
Declaration
public static explicit operator IntPtr(ISteamMatchmakingServerListResponse that)
Parameters
| Type | Name | Description |
|---|---|---|
| ISteamMatchmakingServerListResponse | that | The sink to convert; may be null. |
Returns
| Type | Description |
|---|---|
| IntPtr | The native object's address, or Zero when |