Click or drag to resize

ServiceHelper.LocateService Method

Overload List
  NameDescription
Public methodStatic memberLocateService(Type, Object)
Convenience method for implementing IServiceProvider objects. If candidate is an instance of serviceType, returns candidate, otherwise returns null.
Public methodStatic memberLocateService<T>(Type, Object,T[])
Convenience method for implementing IServiceProvider objects. If candidate is an instance of serviceType, returns candidate. Otherwise, checks additional IServiceProvider objects for any that return a non-null result for serviceType. Otherwise, returns null.
Public methodStatic memberLocateService<T>(Type, Object, IEnumerable<T>)
Convenience method for implementing IServiceProvider objects. If candidate is an instance of serviceType, returns candidate. Otherwise, checks additional IServiceProvider objects for any that return a non-null result for serviceType. Otherwise, returns null.
Top
See Also