File: Completion\CompletionListCacheWrapperProvder.cs
Web Access
Project: src\src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Remote.Razor\Microsoft.CodeAnalysis.Remote.Razor.csproj (Microsoft.CodeAnalysis.Remote.Razor)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.Composition;
using Microsoft.CodeAnalysis.ExternalAccess.Razor.Cohost.Handlers;
 
namespace Microsoft.CodeAnalysis.Remote.Razor;
 
[Shared]
[Export(typeof(CompletionListCacheWrapperProvder))]
internal class CompletionListCacheWrapperProvder
{
    private CompletionListCacheWrapper? _cacheWrapper;
 
    public CompletionListCacheWrapper GetCache()
    {
        _cacheWrapper ??= new();
        return _cacheWrapper;
    }
}