IW4M-Admin/Integrations/Source/RConClientFactory.cs

14 lines
346 B
C#
Raw Normal View History

2021-07-11 18:26:30 -04:00
using System.Net;
using Integrations.Source.Interfaces;
2021-06-03 11:51:03 -04:00
using RconSharp;
namespace Integrations.Source
{
public class RConClientFactory : IRConClientFactory
{
2021-07-11 18:26:30 -04:00
public RconClient CreateClient(IPEndPoint ipEndPoint)
2021-06-03 11:51:03 -04:00
{
2021-07-11 18:26:30 -04:00
return RconClient.Create(ipEndPoint.Address.ToString(), ipEndPoint.Port);
2021-06-03 11:51:03 -04:00
}
}
}