Skip to content

T_CodeJam_Services_ServiceProviderHelper

Andrew Koryavchenko edited this page Jun 17, 2018 · 5 revisions

ServiceProviderHelper ClassIServiceProvider and IServicePublisher helper methods.

Inheritance Hierarchy

System.Object
  CodeJam.Services.ServiceProviderHelper
Namespace: CodeJam.Services
Assembly: CodeJam.Blocks (in CodeJam.Blocks.dll) Version: 2.0.0.0

Syntax

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.

Methods

 

Name Description
Public methodStatic member GetRequiredService(IServiceProvider, Type) Gets the service object of the specified type, or throws an exception if service not registered.
Public methodStatic member GetRequiredService(T)(IServiceProvider) Gets the service object of the specified type, or throws an exception if service not registered.
Public methodStatic member GetService(T) Gets the service object of the specified type.
Public methodStatic member Publish(T)(IServicePublisher, Func(IServicePublisher, T)) Publish service.
Public methodStatic member Publish(T)(IServicePublisher, T) Publish service.
  Back to Top

See Also

Reference

CodeJam.Services Namespace

Clone this wiki locally