29 lines
No EOL
536 B
C#
29 lines
No EOL
536 B
C#
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; }
|
|
}
|
|
|
|
} |