Exemplo n.º 1
0
        private static bool LogGenericWarningException(
            Exception e,
            CachedOrganizationRequest request,
            [System.Runtime.CompilerServices.CallerMemberName] string memberName    = "",
            [System.Runtime.CompilerServices.CallerFilePath] string sourceFilePath  = "",
            [System.Runtime.CompilerServices.CallerLineNumber] int sourceLineNumber = 0)
        {
            // use caller's debug arguments if available
            var telemetry = request?.Telemetry;

            if (telemetry != null)
            {
                WebEventSource.Log.GenericWarningException(e, null, telemetry.Caller.MemberName, telemetry.Caller.SourceFilePath, telemetry.Caller.SourceLineNumber);
            }
            else
            {
                WebEventSource.Log.GenericWarningException(e, null, memberName, sourceFilePath, sourceLineNumber);
            }

            return(false);
        }
 /// <summary>The get dependencies.</summary>
 /// <param name="request">The request.</param>
 /// <param name="isSingle">The is single.</param>
 /// <param name="path">The path.</param>
 /// <returns>The dependencies.</returns>
 private IEnumerable <string> GetDependencies(CachedOrganizationRequest request, bool isSingle, IEnumerable <object> path)
 {
     return(this.GetDependenciesForObject(request.Request, isSingle, path));
 }