public void Add(IHttpCancel action) { if (list == null) { list = new List<IHttpCancel>(); } list.Add(action); }