public override void Initialize() { ParentObjectMatcher = ServiceComponent.ComponentContainer.Resolve <ITextMatcher <TParent> >(Name); if (ParentObjectMatcher != null) { ParentObjectMatcher.Initialize(); } ChildObjectMatcher = ServiceComponent.ComponentContainer.Resolve <ITextMatcher <TChild> >(Name); if (ChildObjectMatcher != null) { ChildObjectMatcher.Initialize(); } }
/// <summary> /// Initializes the processor /// </summary> public override void Initialize() { // resolve the parent type using the component container and initialize it ParentObjectMatcher = ServiceComponent.ComponentContainer.Resolve <ITextMatcher <TParent> >(Name); if (ParentObjectMatcher != null) { ParentObjectMatcher.Initialize(); } // resolve the child type using the component container and initialize it ChildObjectMatcher = ServiceComponent.ComponentContainer.Resolve <ITextMatcher <TChild> >(Name); if (ChildObjectMatcher != null) { ChildObjectMatcher.Initialize(); } }