EndpointAliases.

EndpointCreate(ICakeContext, IEnumerable<Endpoint>, EndpointCreatorSettings) 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, EndpointCreatorSettings settings)

Examples

Cake task:

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

Attributes

Type Description
CakeMethodAliasAttribute
CakeNamespaceImportAttribute
CakeNamespaceImportAttribute

Parameters

Name Type Description
context ICakeContext The context.
endpoints IEnumerable<Endpoint> Required. Endpoint list defining all files and directories.
settings EndpointCreatorSettings Required. Settings holding additional information when creating endpoints.

Return Value

Type Description
void