Edit

Share via


KeyedSingletonService<TKey,TService> Class

Definition

Represents a singleton service which is identified by a key.

public class KeyedSingletonService<TKey,TService> : IEquatable<TKey>, Orleans.Runtime.IKeyedService<TKey,TService> where TService : class
type KeyedSingletonService<'Key, 'Service (requires 'Service : null)> = class
    interface IKeyedService<'Key, 'Service (requires 'Service : null)>
    interface IEquatable<'Key>
Public Class KeyedSingletonService(Of TKey, TService)
Implements IEquatable(Of TKey), IKeyedService(Of TKey, TService)

Type Parameters

TKey

The type of the key.

TService

The type of the service.

Inheritance
KeyedSingletonService<TKey,TService>
Derived
Implements

Constructors

Name Description
KeyedSingletonService<TKey,TService>(TKey, IServiceProvider, Func<IServiceProvider,TKey,TService>)

Initializes a new instance of the KeyedSingletonService<TKey,TService> class.

Properties

Name Description
Key

Gets the service key.

Methods

Name Description
Equals(TKey)

Indicates whether the current object is equal to another object of the same type.

GetService(IServiceProvider)

Gets the service from the service provider.

Applies to