Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public static ILoggerFactory GetLoggerFactory(this IServiceProvider serviceProvi
/// <param name="serviceProvider">The service provider.</param>
/// <returns>The output device.</returns>
public static IOutputDevice GetOutputDevice(this IServiceProvider serviceProvider)
=> serviceProvider.GetRequiredServiceInternal<IOutputDevice>();
=> serviceProvider.GetRequiredService<IOutputDevice>();

/// <summary>
/// Gets the IClientInfo from the <see cref="IServiceProvider"/>.
Expand All @@ -102,7 +102,7 @@ public static IOutputDevice GetOutputDevice(this IServiceProvider serviceProvide
/// <returns>The IClientInfo object.</returns>
[Experimental("TPEXP", UrlFormat = "https://aka.ms/testingplatform/diagnostics#{0}")]
public static IClientInfo GetClientInfo(this IServiceProvider serviceProvider)
=> serviceProvider.GetRequiredServiceInternal<IClientInfo>();
=> serviceProvider.GetRequiredService<IClientInfo>();

// Internals extensions
internal static TService GetRequiredServiceInternal<TService>(this IServiceProvider provider)
Expand Down