/// <summary> /// Obtains an instance of an IConfigurationPipe specified by TPipe from the DI container /// and adds it to the list of XPike Configuration middleware. /// </summary> /// <typeparam name="TPipe"></typeparam> /// <param name="provider"></param> /// <returns></returns> public static IDependencyProvider AddConfigurationPipe <TPipe>(this IDependencyProvider provider) where TPipe : class, IConfigurationPipe => provider.AddConfigurationPipe(provider.ResolveDependency <TPipe>());