Microsoft.ApplicationInsights.Extensibility.Implementation.ExceptionConverterTest.FailedFunction(int)

Here are the examples of the csharp api class Microsoft.ApplicationInsights.Extensibility.Implementation.ExceptionConverterTest.FailedFunction(int) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

Project: ApplicationInsights-dotnet
Source File: ExceptionConverterTest.cs
[MethodImplAttribute(MethodImplOptions.NoInlining)]
        private Exception CreateException(int numberOfStackpoints)
        {
            Exception exception = null;

            try
            {
                this.FailedFunction(numberOfStackpoints);
            }
            catch (Exception exp)
            {
                exception = exp;
            }

            return exception;
        }

2. Example

Project: ApplicationInsights-dotnet
Source File: ExceptionConverterTest.cs
[MethodImplAttribute(MethodImplOptions.NoInlining)]
        private void FailedFunction(int numberOfStackpoints)
        {
            if (numberOfStackpoints > 1)
            {
                this.FailedFunction(--numberOfStackpoints);
            }

            throw new AggregateException("exception message");
        }