src/DotNetWorker.Core/IWorker.cs (11 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.Threading; using System.Threading.Tasks; namespace Microsoft.Azure.Functions.Worker { internal interface IWorker { Task StartAsync(CancellationToken token); Task StopAsync(CancellationToken token); } }