Exemple #1
0
 protected virtual void OnFoundContent(Content content)
 {
     var action = FoundContent;
     if (null != action)
     {
         action(content);
     }
 }
Exemple #2
0
 public IFactory Resolve(Content content)
 {
     if (Responsible(content))
         return _factory;
     else
     {
         return Sucsessor.Resolve(content);
     }
 }
Exemple #3
0
 protected abstract bool Responsible(Content content);
Exemple #4
0
 protected override bool Responsible(Content content)
 {
     return content.GetType() == typeof(AgsContent);
 }
Exemple #5
0
 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>();
        }
Exemple #8
0
 private void ProcessContent(Content content)
 {
     Console.WriteLine(content.Title);
 }