다음을 통해 공유


KeyedService<TKey,TService> 클래스

정의

키로 식별되는 서비스를 나타냅니다.

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)

형식 매개 변수

TKey

키의 형식입니다.

TService

서비스의 유형입니다.

상속
KeyedService<TKey,TService>
파생
구현

생성자

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

KeyedService<TKey,TService> 클래스의 새 인스턴스를 초기화합니다.

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

키로 식별되는 서비스를 나타냅니다.

속성

Key

서비스 키를 가져옵니다.

메서드

Equals(TKey)

키로 식별되는 서비스를 나타냅니다.

GetService(IServiceProvider)

서비스 공급자에서 서비스를 가져옵니다.

적용 대상

추가 정보