File: ServicesItem.cs
Web Access
Project: src\src\aspnetcore\src\Analyzers\Analyzers\src\Microsoft.AspNetCore.Analyzers.csproj (Microsoft.AspNetCore.Analyzers)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Operations;

namespace Microsoft.AspNetCore.Analyzers;

internal sealed class ServicesItem
{
    public ServicesItem(IInvocationOperation operation)
    {
        Operation = operation;
    }

    public IInvocationOperation Operation { get; }

    public IMethodSymbol UseMethod => Operation.TargetMethod;
}