示例#1
0
 protected virtual void OnFoundContent(Content content)
 {
     var action = FoundContent;
     if (null != action)
     {
         action(content);
     }
 }
示例#2
0
 public IFactory Resolve(Content content)
 {
     if (Responsible(content))
         return _factory;
     else
     {
         return Sucsessor.Resolve(content);
     }
 }
示例#3
0
 protected abstract bool Responsible(Content content);
示例#4
0
 protected override bool Responsible(Content content)
 {
     return content.GetType() == typeof(AgsContent);
 }
示例#5
0
 protected override bool Responsible(Content content)
 {
     return true;
 }
示例#6
0
 private void FoundContent(Content content)
 {
     _counter++;
     _content = content;
     if (content is MxdContent)
     {
         _mxdContents.Add((MxdContent) content);
     }
 }
示例#7
0
        public override void Setup()
        {
            _finished = false;
            _counter = 0;
            _content = null;

            _mxdContents = new List<MxdContent>();
        }
示例#8
0
文件: Fixture.cs 项目: baens/Esri2011
 private void ProcessContent(Content content)
 {
     Console.WriteLine(content.Title);
 }