@azure/functions
Version:
Microsoft Azure Functions NodeJS Framework
20 lines (16 loc) • 661 B
text/typescript
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License.
import * as coreTypes from '@azure/functions-core';
import { CoreInvocationContext, setProgrammingModel } from '@azure/functions-core';
import { version } from './constants';
import { InvocationModel } from './InvocationModel';
class ProgrammingModel implements coreTypes.ProgrammingModel {
name = '@azure/functions';
version = version;
getInvocationModel(coreCtx: CoreInvocationContext): InvocationModel {
return new InvocationModel(coreCtx);
}
}
export function setup() {
setProgrammingModel(new ProgrammingModel());
}