Skip to content

Commit

Permalink
API Debt - Microsoft.Extensions.DependencyInjection (#76940)
Browse files Browse the repository at this point in the history
* Resolve missing triple-slash

* Apply suggestions from code review

Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>

Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
  • Loading branch information
Nick-Stanton and gewarren committed Oct 18, 2022
1 parent 618e890 commit f7e6cf1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,30 @@ private ServiceDescriptor(Type serviceType, ServiceLifetime lifetime)
ServiceType = serviceType;
}

/// <summary>
/// Gets the <see cref="ServiceLifetime"/> of the service.
/// </summary>
public ServiceLifetime Lifetime { get; }

/// <summary>
/// Gets the <see cref="Type"/> of the service.
/// </summary>
public Type ServiceType { get; }

/// <summary>
/// Gets the <see cref="Type"/> that implements the service.
/// </summary>
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)]
public Type? ImplementationType { get; }

/// <summary>
/// Gets the instance that implements the service.
/// </summary>
public object? ImplementationInstance { get; }

/// <summary>
/// Gets the factory used for creating service instances.
/// </summary>
public Func<IServiceProvider, object>? ImplementationFactory { get; }

/// <inheritdoc />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

namespace Microsoft.Extensions.DependencyInjection
{
/// <summary>
/// Extension methods for adding hosted services to an <see cref="IServiceCollection" />.
/// </summary>
public static class ServiceCollectionHostedServiceExtensions
{
/// <summary>
Expand Down

0 comments on commit f7e6cf1

Please sign in to comment.