// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using Microsoft.AspNet.Mvc.Abstractions;
namespace Microsoft.AspNet.Mvc.Infrastructure
{
///
/// A cached collection of .
///
public class ActionDescriptorsCollection
{
///
/// Initializes a new instance of the .
///
/// The result of action discovery
/// The unique version of discovered actions.
public ActionDescriptorsCollection(IReadOnlyList items, int version)
{
if (items == null)
{
throw new ArgumentNullException(nameof(items));
}
Items = items;
Version = version;
}
///
/// Returns the cached .
///
public IReadOnlyList Items { get; private set; }
///
/// Returns the unique version of the currently cached items.
///
public int Version { get; private set; }
}
}