Skip to content

Methods_T_CodeJam_Services_ServiceContainer

Andrew Koryavchenko edited this page Jul 4, 2017 · 3 revisions

ServiceContainer Methods

The ServiceContainer type exposes the following members.

Methods

 

Name Description
Public method Dispose Calls Dispose() methods in all created service instances, that implements IDisposable.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetService Gets the service object of the specified type.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Publish(Type, Func(IServicePublisher, Object)) Publish service.
Public method Publish(Type, Object) Publish service.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
  Back to Top

Extension Methods

 

Name Description
Public Extension Method GetRequiredService(Type) Overloaded.
Gets the service object of the specified type, or throws an exception if service not registered. (Defined by ServiceProviderHelper.)
Public Extension Method GetRequiredService(T)() Overloaded.
Gets the service object of the specified type, or throws an exception if service not registered. (Defined by ServiceProviderHelper.)
Public Extension Method GetService(T) Gets the service object of the specified type. (Defined by ServiceProviderHelper.)
Public Extension Method Publish(T)(T) Overloaded.
Publish service. (Defined by ServiceProviderHelper.)
Public Extension Method Publish(T)(Func(IServicePublisher, T)) Overloaded.
Publish service. (Defined by ServiceProviderHelper.)
  Back to Top

See Also

Reference

ServiceContainer Class
CodeJam.Services Namespace

Clone this wiki locally