Open sandboxFocus

Method Activity

Activity(string)

Writes a preformatted message and increases the indentation level. To decrease the indentation level, dispose the BuildTimeLogActivity returned by this method.

Declaration
public BuildTimeLogActivity Activity(string message)
Parameters
Type Name Description
string message

The message.

Returns
Type Description
BuildTimeLogActivity

An opaque object. Dispose it at the end of the activity to decrease the indentation level.

Activity<T1>(string, T1)

Writes a message given a formatting string and 1 argument, and increases the indentation level. To decrease the indentation level, dispose the BuildTimeLogActivity returned by this method.

Declaration
public BuildTimeLogActivity Activity<T1>(string format, T1 arg1)
Parameters
Type Name Description
string format

The message formatting string.

T1 arg1

The value of argument 1.

Returns
Type Description
BuildTimeLogActivity

An opaque object. Dispose it at the end of the activity to decrease the indentation level.

Type Parameters
Name Description
T1

The type of argument 1.

Activity<T1, T2>(string, T1, T2)

Writes a message given a formatting string and 2 arguments, and increases the indentation level. To decrease the indentation level, dispose the BuildTimeLogActivity returned by this method.

Declaration
public BuildTimeLogActivity Activity<T1, T2>(string format, T1 arg1, T2 arg2)
Parameters
Type Name Description
string format

The message formatting string.

T1 arg1

The value of argument 1.

T2 arg2

The value of argument 2.

Returns
Type Description
BuildTimeLogActivity

An opaque object. Dispose it at the end of the activity to decrease the indentation level.

Type Parameters
Name Description
T1

The type of argument 1.

T2

The type of argument 2.

Activity<T1, T2, T3>(string, T1, T2, T3)

Writes a message given a formatting string and 3 arguments, and increases the indentation level. To decrease the indentation level, dispose the BuildTimeLogActivity returned by this method.

Declaration
public BuildTimeLogActivity Activity<T1, T2, T3>(string format, T1 arg1, T2 arg2, T3 arg3)
Parameters
Type Name Description
string format

The message formatting string.

T1 arg1

The value of argument 1.

T2 arg2

The value of argument 2.

T3 arg3

The value of argument 3.

Returns
Type Description
BuildTimeLogActivity

An opaque object. Dispose it at the end of the activity to decrease the indentation level.

Type Parameters
Name Description
T1

The type of argument 1.

T2

The type of argument 2.

T3

The type of argument 3.

Activity<T1, T2, T3, T4>(string, T1, T2, T3, T4)

Writes a message given a formatting string and 4 arguments, and increases the indentation level. To decrease the indentation level, dispose the BuildTimeLogActivity returned by this method.

Declaration
public BuildTimeLogActivity Activity<T1, T2, T3, T4>(string format, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
Parameters
Type Name Description
string format

The message formatting string.

T1 arg1

The value of argument 1.

T2 arg2

The value of argument 2.

T3 arg3

The value of argument 3.

T4 arg4

The value of argument 4.

Returns
Type Description
BuildTimeLogActivity

An opaque object. Dispose it at the end of the activity to decrease the indentation level.

Type Parameters
Name Description
T1

The type of argument 1.

T2

The type of argument 2.

T3

The type of argument 3.

T4

The type of argument 4.

Activity<T1, T2, T3, T4, T5>(string, T1, T2, T3, T4, T5)

Writes a message given a formatting string and 5 arguments, and increases the indentation level. To decrease the indentation level, dispose the BuildTimeLogActivity returned by this method.

Declaration
public BuildTimeLogActivity Activity<T1, T2, T3, T4, T5>(string format, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5)
Parameters
Type Name Description
string format

The message formatting string.

T1 arg1

The value of argument 1.

T2 arg2

The value of argument 2.

T3 arg3

The value of argument 3.

T4 arg4

The value of argument 4.

T5 arg5

The value of argument 5.

Returns
Type Description
BuildTimeLogActivity

An opaque object. Dispose it at the end of the activity to decrease the indentation level.

Type Parameters
Name Description
T1

The type of argument 1.

T2

The type of argument 2.

T3

The type of argument 3.

T4

The type of argument 4.

T5

The type of argument 5.

Activity<T1, T2, T3, T4, T5, T6>(string, T1, T2, T3, T4, T5, T6)

Writes a message given a formatting string and 6 arguments, and increases the indentation level. To decrease the indentation level, dispose the BuildTimeLogActivity returned by this method.

Declaration
public BuildTimeLogActivity Activity<T1, T2, T3, T4, T5, T6>(string format, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6)
Parameters
Type Name Description
string format

The message formatting string.

T1 arg1

The value of argument 1.

T2 arg2

The value of argument 2.

T3 arg3

The value of argument 3.

T4 arg4

The value of argument 4.

T5 arg5

The value of argument 5.

T6 arg6

The value of argument 6.

Returns
Type Description
BuildTimeLogActivity

An opaque object. Dispose it at the end of the activity to decrease the indentation level.

Type Parameters
Name Description
T1

The type of argument 1.

T2

The type of argument 2.

T3

The type of argument 3.

T4

The type of argument 4.

T5

The type of argument 5.

T6

The type of argument 6.

Activity<T1, T2, T3, T4, T5, T6, T7>(string, T1, T2, T3, T4, T5, T6, T7)

Writes a message given a formatting string and 7 arguments, and increases the indentation level. To decrease the indentation level, dispose the BuildTimeLogActivity returned by this method.

Declaration
public BuildTimeLogActivity Activity<T1, T2, T3, T4, T5, T6, T7>(string format, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
Parameters
Type Name Description
string format

The message formatting string.

T1 arg1

The value of argument 1.

T2 arg2

The value of argument 2.

T3 arg3

The value of argument 3.

T4 arg4

The value of argument 4.

T5 arg5

The value of argument 5.

T6 arg6

The value of argument 6.

T7 arg7

The value of argument 7.

Returns
Type Description
BuildTimeLogActivity

An opaque object. Dispose it at the end of the activity to decrease the indentation level.

Type Parameters
Name Description
T1

The type of argument 1.

T2

The type of argument 2.

T3

The type of argument 3.

T4

The type of argument 4.

T5

The type of argument 5.

T6

The type of argument 6.

T7

The type of argument 7.