FakeRedactionServiceProviderExtensions.GetFakeRedactionCollector Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the fake redactor collector instance from the dependency injection container.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Compliance::Testing::FakeRedactionCollector ^ GetFakeRedactionCollector(IServiceProvider ^ serviceProvider);
public static Microsoft.Extensions.Compliance.Testing.FakeRedactionCollector GetFakeRedactionCollector (this IServiceProvider serviceProvider);
static member GetFakeRedactionCollector : IServiceProvider -> Microsoft.Extensions.Compliance.Testing.FakeRedactionCollector
<Extension()>
Public Function GetFakeRedactionCollector (serviceProvider As IServiceProvider) As FakeRedactionCollector
Parameters
- serviceProvider
- IServiceProvider
The container used to obtain the collector instance.
Returns
The obtained collector.
Exceptions
The collector is not in the container.
serviceProvider
is null
.
Remarks
FakeRedactionCollector should be registered and used only with fake redaction implementation.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.