Megosztás a következőn keresztül:


ISupportRequiredService Interface

Definition

Optional contract used by GetRequiredService<T>(IServiceProvider) to resolve services if supported by IServiceProvider.

public interface class ISupportRequiredService
public interface ISupportRequiredService
type ISupportRequiredService = interface
Public Interface ISupportRequiredService

Methods

GetRequiredService(Type)

Gets service of type serviceType from the IServiceProvider implementing this interface.

Applies to