/
veer
/
Zaya.Translator
Обзор
Документация
Войти
/
veer
/
Zaya.Translator
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
docs/api/Microsoft.Extensions.DependencyInjection.MemoryTranslatorCacheServiceCollectionExtensions.yml
400 строк
15 KB
Vladimir Makarov
Extract TranslatorCache as a separate interface and Memory plugin.
01 авг 2026, 22:01
01 авг 2026, 22:01
d289f8b
Код
Авторство
О чём код?
### YamlMime:ManagedReference items: - uid: Microsoft.Extensions.DependencyInjection.MemoryTranslatorCacheServiceCollectionExtensions commentId: T:Microsoft.Extensions.DependencyInjection.MemoryTranslatorCacheServiceCollectionExtensions id: MemoryTranslatorCacheServiceCollectionExtensions parent: Microsoft.Extensions.DependencyInjection children: - Microsoft.Extensions.DependencyInjection.MemoryTranslatorCacheServiceCollectionExtensions.AddMemoryTranslatorCache(Microsoft.Extensions.DependencyInjection.IServiceCollection) langs: - csharp - vb name: MemoryTranslatorCacheServiceCollectionExtensions nameWithType: MemoryTranslatorCacheServiceCollectionExtensions fullName: Microsoft.Extensions.DependencyInjection.MemoryTranslatorCacheServiceCollectionExtensions type: Class source: remote: path: src/Zaya.TranslatorCache.Impl.Memory/Extensions/ServiceCollectionExtensions.cs branch: main repo: https://github.com/shtrasser-dev/Zaya.Translator id: MemoryTranslatorCacheServiceCollectionExtensions path: src/Zaya.TranslatorCache.Impl.Memory/Extensions/ServiceCollectionExtensions.cs startLine: 8 assemblies: - Zaya.TranslatorCache.Impl.Memory namespace: Microsoft.Extensions.DependencyInjection summary: Extension methods for registering the memory translator-cache engine. example: [] syntax: content: public static class MemoryTranslatorCacheServiceCollectionExtensions content.vb: Public Module MemoryTranslatorCacheServiceCollectionExtensions inheritance: - System.Object inheritedMembers: - System.Object.Equals(System.Object) - System.Object.Equals(System.Object,System.Object) - System.Object.GetHashCode - System.Object.GetType - System.Object.MemberwiseClone - System.Object.ReferenceEquals(System.Object,System.Object) - System.Object.ToString - uid: Microsoft.Extensions.DependencyInjection.MemoryTranslatorCacheServiceCollectionExtensions.AddMemoryTranslatorCache(Microsoft.Extensions.DependencyInjection.IServiceCollection) commentId: M:Microsoft.Extensions.DependencyInjection.MemoryTranslatorCacheServiceCollectionExtensions.AddMemoryTranslatorCache(Microsoft.Extensions.DependencyInjection.IServiceCollection) id: AddMemoryTranslatorCache(Microsoft.Extensions.DependencyInjection.IServiceCollection) isExtensionMethod: true parent: Microsoft.Extensions.DependencyInjection.MemoryTranslatorCacheServiceCollectionExtensions langs: - csharp - vb name: AddMemoryTranslatorCache(IServiceCollection) nameWithType: MemoryTranslatorCacheServiceCollectionExtensions.AddMemoryTranslatorCache(IServiceCollection) fullName: Microsoft.Extensions.DependencyInjection.MemoryTranslatorCacheServiceCollectionExtensions.AddMemoryTranslatorCache(Microsoft.Extensions.DependencyInjection.IServiceCollection) type: Method source: remote: path: src/Zaya.TranslatorCache.Impl.Memory/Extensions/ServiceCollectionExtensions.cs branch: main repo: https://github.com/shtrasser-dev/Zaya.Translator id: AddMemoryTranslatorCache path: src/Zaya.TranslatorCache.Impl.Memory/Extensions/ServiceCollectionExtensions.cs startLine: 13 assemblies: - Zaya.TranslatorCache.Impl.Memory namespace: Microsoft.Extensions.DependencyInjection summary: Registers <xref href="Zaya.TranslatorCache.Impl.Memory.Services.MemoryTranslatorCacheService" data-throw-if-not-resolved="false"></xref> as a singleton <xref href="Zaya.TranslatorCache.Services.ITranslatorCacheService" data-throw-if-not-resolved="false"></xref>. example: [] syntax: content: public static IServiceCollection AddMemoryTranslatorCache(this IServiceCollection services) parameters: - id: services type: Microsoft.Extensions.DependencyInjection.IServiceCollection return: type: Microsoft.Extensions.DependencyInjection.IServiceCollection content.vb: Public Shared Function AddMemoryTranslatorCache(services As IServiceCollection) As IServiceCollection overload: Microsoft.Extensions.DependencyInjection.MemoryTranslatorCacheServiceCollectionExtensions.AddMemoryTranslatorCache* references: - uid: Microsoft.Extensions.DependencyInjection commentId: N:Microsoft.Extensions.DependencyInjection href: https://learn.microsoft.com/dotnet/api/microsoft name: Microsoft.Extensions.DependencyInjection nameWithType: Microsoft.Extensions.DependencyInjection fullName: Microsoft.Extensions.DependencyInjection spec.csharp: - uid: Microsoft name: Microsoft href: https://learn.microsoft.com/dotnet/api/microsoft - name: . - uid: Microsoft.Extensions name: Extensions href: https://learn.microsoft.com/dotnet/api/microsoft.extensions - name: . - uid: Microsoft.Extensions.DependencyInjection name: DependencyInjection href: https://learn.microsoft.com/dotnet/api/microsoft.extensions.dependencyinjection spec.vb: - uid: Microsoft name: Microsoft href: https://learn.microsoft.com/dotnet/api/microsoft - name: . - uid: Microsoft.Extensions name: Extensions href: https://learn.microsoft.com/dotnet/api/microsoft.extensions - name: . - uid: Microsoft.Extensions.DependencyInjection name: DependencyInjection href: https://learn.microsoft.com/dotnet/api/microsoft.extensions.dependencyinjection - uid: System.Object commentId: T:System.Object parent: System isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object name: object nameWithType: object fullName: object nameWithType.vb: Object fullName.vb: Object name.vb: Object - uid: System.Object.Equals(System.Object) commentId: M:System.Object.Equals(System.Object) parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object) name: Equals(object) nameWithType: object.Equals(object) fullName: object.Equals(object) nameWithType.vb: Object.Equals(Object) fullName.vb: Object.Equals(Object) name.vb: Equals(Object) spec.csharp: - uid: System.Object.Equals(System.Object) name: Equals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object) - name: ( - uid: System.Object name: object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) spec.vb: - uid: System.Object.Equals(System.Object) name: Equals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object) - name: ( - uid: System.Object name: Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) - uid: System.Object.Equals(System.Object,System.Object) commentId: M:System.Object.Equals(System.Object,System.Object) parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object) name: Equals(object, object) nameWithType: object.Equals(object, object) fullName: object.Equals(object, object) nameWithType.vb: Object.Equals(Object, Object) fullName.vb: Object.Equals(Object, Object) name.vb: Equals(Object, Object) spec.csharp: - uid: System.Object.Equals(System.Object,System.Object) name: Equals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object) - name: ( - uid: System.Object name: object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ',' - name: " " - uid: System.Object name: object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) spec.vb: - uid: System.Object.Equals(System.Object,System.Object) name: Equals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object) - name: ( - uid: System.Object name: Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ',' - name: " " - uid: System.Object name: Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) - uid: System.Object.GetHashCode commentId: M:System.Object.GetHashCode parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode name: GetHashCode() nameWithType: object.GetHashCode() fullName: object.GetHashCode() nameWithType.vb: Object.GetHashCode() fullName.vb: Object.GetHashCode() spec.csharp: - uid: System.Object.GetHashCode name: GetHashCode isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode - name: ( - name: ) spec.vb: - uid: System.Object.GetHashCode name: GetHashCode isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode - name: ( - name: ) - uid: System.Object.GetType commentId: M:System.Object.GetType parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gettype name: GetType() nameWithType: object.GetType() fullName: object.GetType() nameWithType.vb: Object.GetType() fullName.vb: Object.GetType() spec.csharp: - uid: System.Object.GetType name: GetType isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gettype - name: ( - name: ) spec.vb: - uid: System.Object.GetType name: GetType isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.gettype - name: ( - name: ) - uid: System.Object.MemberwiseClone commentId: M:System.Object.MemberwiseClone parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone name: MemberwiseClone() nameWithType: object.MemberwiseClone() fullName: object.MemberwiseClone() nameWithType.vb: Object.MemberwiseClone() fullName.vb: Object.MemberwiseClone() spec.csharp: - uid: System.Object.MemberwiseClone name: MemberwiseClone isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone - name: ( - name: ) spec.vb: - uid: System.Object.MemberwiseClone name: MemberwiseClone isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone - name: ( - name: ) - uid: System.Object.ReferenceEquals(System.Object,System.Object) commentId: M:System.Object.ReferenceEquals(System.Object,System.Object) parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals name: ReferenceEquals(object, object) nameWithType: object.ReferenceEquals(object, object) fullName: object.ReferenceEquals(object, object) nameWithType.vb: Object.ReferenceEquals(Object, Object) fullName.vb: Object.ReferenceEquals(Object, Object) name.vb: ReferenceEquals(Object, Object) spec.csharp: - uid: System.Object.ReferenceEquals(System.Object,System.Object) name: ReferenceEquals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals - name: ( - uid: System.Object name: object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ',' - name: " " - uid: System.Object name: object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) spec.vb: - uid: System.Object.ReferenceEquals(System.Object,System.Object) name: ReferenceEquals isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals - name: ( - uid: System.Object name: Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ',' - name: " " - uid: System.Object name: Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object - name: ) - uid: System.Object.ToString commentId: M:System.Object.ToString parent: System.Object isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.tostring name: ToString() nameWithType: object.ToString() fullName: object.ToString() nameWithType.vb: Object.ToString() fullName.vb: Object.ToString() spec.csharp: - uid: System.Object.ToString name: ToString isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.tostring - name: ( - name: ) spec.vb: - uid: System.Object.ToString name: ToString isExternal: true href: https://learn.microsoft.com/dotnet/api/system.object.tostring - name: ( - name: ) - uid: System commentId: N:System isExternal: true href: https://learn.microsoft.com/dotnet/api/system name: System nameWithType: System fullName: System - uid: Zaya.TranslatorCache.Impl.Memory.Services.MemoryTranslatorCacheService commentId: T:Zaya.TranslatorCache.Impl.Memory.Services.MemoryTranslatorCacheService href: Zaya.TranslatorCache.Impl.Memory.Services.MemoryTranslatorCacheService.html name: MemoryTranslatorCacheService nameWithType: MemoryTranslatorCacheService fullName: Zaya.TranslatorCache.Impl.Memory.Services.MemoryTranslatorCacheService - uid: Zaya.TranslatorCache.Services.ITranslatorCacheService commentId: T:Zaya.TranslatorCache.Services.ITranslatorCacheService parent: Zaya.TranslatorCache.Services href: Zaya.TranslatorCache.Services.ITranslatorCacheService.html name: ITranslatorCacheService nameWithType: ITranslatorCacheService fullName: Zaya.TranslatorCache.Services.ITranslatorCacheService - uid: Microsoft.Extensions.DependencyInjection.MemoryTranslatorCacheServiceCollectionExtensions.AddMemoryTranslatorCache* commentId: Overload:Microsoft.Extensions.DependencyInjection.MemoryTranslatorCacheServiceCollectionExtensions.AddMemoryTranslatorCache href: Microsoft.Extensions.DependencyInjection.MemoryTranslatorCacheServiceCollectionExtensions.html#Microsoft_Extensions_DependencyInjection_MemoryTranslatorCacheServiceCollectionExtensions_AddMemoryTranslatorCache_Microsoft_Extensions_DependencyInjection_IServiceCollection_ name: AddMemoryTranslatorCache nameWithType: MemoryTranslatorCacheServiceCollectionExtensions.AddMemoryTranslatorCache fullName: Microsoft.Extensions.DependencyInjection.MemoryTranslatorCacheServiceCollectionExtensions.AddMemoryTranslatorCache - uid: Microsoft.Extensions.DependencyInjection.IServiceCollection commentId: T:Microsoft.Extensions.DependencyInjection.IServiceCollection parent: Microsoft.Extensions.DependencyInjection isExternal: true href: https://learn.microsoft.com/dotnet/api/microsoft.extensions.dependencyinjection.iservicecollection name: IServiceCollection nameWithType: IServiceCollection fullName: Microsoft.Extensions.DependencyInjection.IServiceCollection - uid: Zaya.TranslatorCache.Services commentId: N:Zaya.TranslatorCache.Services href: Zaya.html name: Zaya.TranslatorCache.Services nameWithType: Zaya.TranslatorCache.Services fullName: Zaya.TranslatorCache.Services spec.csharp: - uid: Zaya name: Zaya href: Zaya.html - name: . - uid: Zaya.TranslatorCache name: TranslatorCache href: Zaya.TranslatorCache.html - name: . - uid: Zaya.TranslatorCache.Services name: Services href: Zaya.TranslatorCache.Services.html spec.vb: - uid: Zaya name: Zaya href: Zaya.html - name: . - uid: Zaya.TranslatorCache name: TranslatorCache href: Zaya.TranslatorCache.html - name: . - uid: Zaya.TranslatorCache.Services name: Services href: Zaya.TranslatorCache.Services.html