-
Notifications
You must be signed in to change notification settings - Fork 35
T_CodeJam_Services_ServiceProviderHelper
Andrew Koryavchenko edited this page Jul 4, 2017
·
5 revisions
ServiceProviderHelper ClassIServiceProvider and IServicePublisher helper methods.
System.Object
CodeJam.Services.ServiceProviderHelper
Namespace: CodeJam.Services
Assembly: CodeJam.Blocks (in CodeJam.Blocks.dll) Version: 1.0.0.0 (1.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. |