Bewerken

Delen 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

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

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

Properties

Key

Gets the service key.

Methods

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