geekbot/Geekbot.net/Lib/IClients/RandomClient.cs

29 lines
536 B
C#
Raw Normal View History

2017-04-25 17:27:11 +02:00
using System;
namespace Geekbot.net.Lib.IClients
{
public interface IRandomClient
{
Random Client { get; set; }
}
public sealed class RandomClient : IRandomClient
{
public RandomClient()
{
try
{
Client = new Random();
}
catch (Exception)
{
Console.WriteLine("Start Redis pls...");
Environment.Exit(1);
}
}
public Random Client { get; set; }
}
}