public static IEnumerable <T> GetResourceProviders <T>(this ILighthouseServiceContainer container) where T : IResourceProvider => container.GetResourceProviders().OfType <T>();
public static INetworkProvider GetNetworkProvider(this ILighthouseServiceContainer container) => container.GetResourceProviders <INetworkProvider>().FirstOrDefault();
/// <summary> /// Returns a list of file system providers available on the target server. A given file system could support multiple drives /// </summary> /// <param name="container"></param> /// <returns></returns> public static IFileSystemProvider GetFileSystem(this ILighthouseServiceContainer container) => container.GetResourceProviders <IFileSystemProvider>().FirstOrDefault();