protected override void OnInit(HttpApplication application) { if (application == null) throw new ArgumentNullException("application"); var config = GetConfig(); if (config == null) return; _config = Config.FromDictionary(config); application.Error += OnError; ErrorSignal.Get(application).Raised += OnErrorSignaled; }
private static IssueManagement CreateIssueManagement(Config config) { var connection = new Connection(config.Host, config.Port, config.UseSsl, config.Path); if (!string.IsNullOrEmpty(config.Username) && !string.IsNullOrEmpty(config.Password)) { connection.Authenticate(config.Username, config.Password); } return new IssueManagement(connection); }