protected virtual void OnFoundContent(Content content) { var action = FoundContent; if (null != action) { action(content); } }
public IFactory Resolve(Content content) { if (Responsible(content)) return _factory; else { return Sucsessor.Resolve(content); } }
protected abstract bool Responsible(Content content);
protected override bool Responsible(Content content) { return content.GetType() == typeof(AgsContent); }
protected override bool Responsible(Content content) { return true; }
private void FoundContent(Content content) { _counter++; _content = content; if (content is MxdContent) { _mxdContents.Add((MxdContent) content); } }
public override void Setup() { _finished = false; _counter = 0; _content = null; _mxdContents = new List<MxdContent>(); }
private void ProcessContent(Content content) { Console.WriteLine(content.Title); }