mirror of
https://github.com/Tribufu/ServerManagers
synced 2026-08-08 20:21:06 +00:00
source code checkin
This commit is contained in:
parent
5f8fb2c825
commit
7e57b72e35
675 changed files with 168433 additions and 0 deletions
24
src/ConanServerManager/Lib/ServerStatusUpdateRegistration.cs
Normal file
24
src/ConanServerManager/Lib/ServerStatusUpdateRegistration.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
using ServerManagerTool.Common.Interfaces;
|
||||
using System;
|
||||
using System.Net;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ServerManagerTool.Lib
|
||||
{
|
||||
public class ServerStatusUpdateRegistration : IAsyncDisposable
|
||||
{
|
||||
public string InstallDirectory;
|
||||
public IPEndPoint LocalEndpoint;
|
||||
public IPEndPoint SteamEndpoint;
|
||||
public Action<IAsyncDisposable, ServerStatusUpdate> UpdateCallback;
|
||||
public Func<Task> UnregisterAction;
|
||||
|
||||
public string ProfileId;
|
||||
public string GameFile;
|
||||
|
||||
public async Task DisposeAsync()
|
||||
{
|
||||
await UnregisterAction();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue