public static void Initialize(IAppBuilder app)
		{
			lock (_locker)
			{
				if (!_isInitialized)
				{
					_isInitialized = true;
					ConfigureWebApi(app);
					ConfigureIndexResponse(app);
				    var settings = IocContainer.Instance.Resolve<ISettingsManager>();
				    var apiToken = settings.Get("slack_token");
                    _log.Info(string.Format("Token:'{0}'", apiToken));
				    _slackBotServer = new SlackBotServer(apiToken);
                    _slackBotServer.ContinueslyTryToConnect().ContinueWith(task =>
                    {
                        var localIpAddress = IpAddressHelper.GetLocalIpAddresses().ToArray();
                        if (!localIpAddress.Any(x => x.Contains("192.168.1")))
                        _slackBotServer.SayTo("@rolf", "I'm on " + localIpAddress.StringJoin(" or "));
                        _log.Info("I'm on " + localIpAddress.StringJoin(" or "));
                    });
				    var monitorJenkins = IocContainer.Instance.Resolve<IMonitorJenkins>();
				    monitorJenkins.StartMonitor(TimeSpan.FromSeconds(30));
				}
			}
		}
 public SlackBotMessageContext(SlackBotServer slackBotServer, SlackMessage message)
 {
     _slackBotServer = slackBotServer;
     _message = message;
 }