sample/ExtensionsSample/SamplesTypeLocator.cs (19 lines of code) (raw):
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using Microsoft.Azure.WebJobs;
namespace ExtensionsSample
{
internal class SamplesTypeLocator : ITypeLocator
{
private Type[] _types;
public SamplesTypeLocator(params Type[] types)
{
_types = types;
}
public IReadOnlyList<Type> GetTypes()
{
return _types;
}
}
}