Edytuj

Udostępnij za pośrednictwem


KeyedService<TKey,TService> Class

Definition

Represents a service which is identified by a key.

public class KeyedService<TKey,TService> : IEquatable<TKey>, Orleans.Runtime.IKeyedService<TKey,TService> where TService : class
type KeyedService<'Key, 'Service (requires 'Service : null)> = class
    interface IKeyedService<'Key, 'Service (requires 'Service : null)>
    interface IEquatable<'Key>
Public Class KeyedService(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
KeyedService<TKey,TService>
Derived
Implements

Constructors

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

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

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

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

See also