예제 #1
0
 public IPipelineFilter <T> Resolve(PipelineFilterInfo pipelineFilterInfo)
 {
     return((IPipelineFilter <T>)_registrations
            .FirstOrDefault(r =>
                            r.Type == pipelineFilterInfo.Type &&
                            r.Name == pipelineFilterInfo.Name)
            ?.Instance);
 }
예제 #2
0
 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));
     }
 }