ScriptCallerAliases.

GetCallerInfo(ICakeContext, string, string, int) Method

Summary

Performs script caller information.
Namespace
Cake.Common.Diagnostics
Containing Type
ScriptCallerAliases

Syntax

[CakeMethodAlias]
public static ScriptCallerInfo GetCallerInfo(this ICakeContext context, string memberName = "", string sourceFilePath = "", int sourceLineNumber = 0)

Attributes

Type Description
CakeMethodAliasAttribute An attribute used to mark script method aliases.

Parameters

Name Type Description
context ICakeContext The context.
memberName string The member name.
sourceFilePath string The source file path.
sourceLineNumber int The source line number.

Return Value

Type Description
ScriptCallerInfo A GetCallerInfo(ICakeContext, string, string, int) instance representing the caller information.