-
Notifications
You must be signed in to change notification settings - Fork 36
T_CodeJam_Services_ServiceProviderHelper
Andrew Koryavchenko edited this page Jun 17, 2018
·
5 revisions
ServiceProviderHelper ClassIServiceProvider and IServicePublisher helper methods.
System.Object
CodeJam.Services.ServiceProviderHelper
Namespace: CodeJam.Services
Assembly: CodeJam.Blocks (in CodeJam.Blocks.dll) Version: 2.0.0.0
C#
public static class ServiceProviderHelper
VB
<ExtensionAttribute>
Public NotInheritable Class ServiceProviderHelper
F#
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type ServiceProviderHelper = class end
The ServiceProviderHelper type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() |
GetRequiredService(IServiceProvider, Type) | Gets the service object of the specified type, or throws an exception if service not registered. |
![]() ![]() |
GetRequiredService(T)(IServiceProvider) | Gets the service object of the specified type, or throws an exception if service not registered. |
![]() ![]() |
GetService(T) | Gets the service object of the specified type. |
![]() ![]() |
Publish(T)(IServicePublisher, Func(IServicePublisher, T)) | Publish service. |
![]() ![]() |
Publish(T)(IServicePublisher, T) | Publish service. |