52 lines
1.2 KiB
C#
52 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using OpenMetaverse;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Bot
|
|
{
|
|
public sealed class BotSession
|
|
{
|
|
private static BotSession _inst = null;
|
|
private static readonly object lockHandle = new object();
|
|
|
|
static BotSession()
|
|
{
|
|
|
|
}
|
|
|
|
public static BotSession Instance
|
|
{
|
|
get
|
|
{
|
|
lock (lockHandle)
|
|
{
|
|
if (_inst == null)
|
|
{
|
|
_inst = new BotSession();
|
|
}
|
|
return _inst;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
public GridClient grid { get; set; }
|
|
public Logger Logger { get; set; }
|
|
|
|
public MainConfiguration ConfigurationHandle {
|
|
get {
|
|
return MainConfiguration.Instance;
|
|
}
|
|
}
|
|
|
|
|
|
public DateTime LaunchTime { get; set; } = DateTime.Now;
|
|
public bool WaitForFiveMinutes = false;
|
|
public MessageService MSGSVC { get; set; } = new MessageService();
|
|
public bool EnqueueExit = false;
|
|
public bool EnqueueGroupRefresh = false;
|
|
}
|
|
}
|