public void OnLoad(IServiceProvider serviceProvider) { try { _trace = serviceProvider.GetService(typeof(TopicTracer)) as TopicTracer; _attributeService = serviceProvider.GetService(typeof(IAttributeService)) as IAttributeService; _chatMessageService = serviceProvider.GetService(typeof(IChatMessageService)) as IChatMessageService; _chatReassignmentService = serviceProvider.GetService(typeof(IChatReassignmentService)) as IChatReassignmentService; Console.WriteLine("[{0}] - OnLoad", BotName); } catch (Exception ex) { Console.WriteLine(ex); } }
public void OnLoad(IServiceProvider serviceProvider) { try { _trace = serviceProvider.GetService(typeof(TopicTracer)) as TopicTracer; _attributeService = serviceProvider.GetService(typeof(IAttributeService)) as IAttributeService; _chatMessageService = serviceProvider.GetService(typeof(IChatMessageService)) as IChatMessageService; _chatReassignmentService = serviceProvider.GetService(typeof(IChatReassignmentService)) as IChatReassignmentService; ServicePointManager.Expect100Continue = false; ServicePointManager.DefaultConnectionLimit = 2000; WebRequest.DefaultWebProxy = null; Console.WriteLine("[{0}] - OnLoad", BotName); } catch (Exception ex) { Console.WriteLine(ex); } }