EndpointAliases.

EndpointCreate(ICakeContext, IEnumerable<Endpoint>) Method

Summary

Creates endpoints by copying all files and directories accoring to the endpoint definition.
Assembly
Cake.Endpoint.dll
Namespace
Cake.Endpoint
Containing Type
EndpointAliases

Syntax

public static void EndpointCreate(this ICakeContext context, IEnumerable<Endpoint> endpoints)

Examples

Cake task:

Task("Create")
    .Does(() =>
{
    var endpoints = DeserializeJsonFromFile<IEnumerable<Endpoint>>( "./endpoints.json" );
    EndpointCreate( endpoints );
});

Attributes

Type Description
CakeMethodAliasAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext The context.
endpoints IEnumerable<Endpoint> Required. Endpoint list defining all files and directories.

Return Value

Type Description
void