OpenAPI.NET.OData/src/Microsoft.OpenApi.OData.Reader/Operation/IOperationHandlerProvider.cs
2018-08-21 14:42:55 -07:00

25 lines
968 B
C#

// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.
// ------------------------------------------------------------
using Microsoft.OpenApi.Models;
using Microsoft.OpenApi.OData.Edm;
namespace Microsoft.OpenApi.OData.Operation
{
/// <summary>
/// An interface to provider <see cref="IOperationHandler"/>.
/// </summary>
internal interface IOperationHandlerProvider
{
/// <summary>
/// Get the <see cref="IOperationHandler"/>.
/// </summary>
/// <param name="pathKind">The path kind.</param>
/// <param name="operationType">The operation type.</param>
/// <returns>The corresponding <see cref="IOperationHandler"/>.</returns>
IOperationHandler GetHandler(ODataPathKind pathKind, OperationType operationType);
}
}