public IPipelineFilter <T> Resolve(PipelineFilterInfo pipelineFilterInfo) { return((IPipelineFilter <T>)_registrations .FirstOrDefault(r => r.Type == pipelineFilterInfo.Type && r.Name == pipelineFilterInfo.Name) ?.Instance); }
public IPipelineFilter <TData> Resolve(PipelineFilterInfo pipelineFilterInfo) { if (!string.IsNullOrWhiteSpace(pipelineFilterInfo.Name)) { return((IPipelineFilter <TData>)_componentContext.ResolveNamed(pipelineFilterInfo.Name, pipelineFilterInfo.Type)); } else { return((IPipelineFilter <TData>)_componentContext.Resolve(pipelineFilterInfo.Type)); } }