public static void Initialize(ServicesHandlerBase serviceHandler) { try { Type mixItUpSecretsType = Type.GetType("MixItUp.Base.MixItUpSecrets"); if (mixItUpSecretsType != null) { ChannelSession.SecretManager = (SecretManagerService)Activator.CreateInstance(mixItUpSecretsType); } } catch (Exception ex) { Util.Logger.Log(ex); } if (ChannelSession.SecretManager == null) { ChannelSession.SecretManager = new SecretManagerService(); } ChannelSession.ActiveUsers = new UserContainerViewModel(); ChannelSession.PreMadeChatCommands = new List <PreMadeChatCommand>(); ChannelSession.GameQueue = new LockedList <UserViewModel>(); ChannelSession.Counters = new LockedDictionary <string, double>(); ChannelSession.Services = serviceHandler; ChannelSession.Chat = new ChatClientWrapper(); ChannelSession.Constellation = new ConstellationClientWrapper(); ChannelSession.Interactive = new InteractiveClientWrapper(); ChannelSession.Statistics = new StatisticsTracker(); }
public static void Initialize(ServicesHandlerBase serviceHandler) { ChannelSession.Services = serviceHandler; ChannelSession.Chat = new ChatClientWrapper(); ChannelSession.Constellation = new ConstellationClientWrapper(); ChannelSession.Interactive = new InteractiveClientWrapper(); }