public string? Locate()

in src/ServiceProfiler.EventPipe.Otel/Microsoft.ApplicationInsights.Profiler.Shared/Services/UploaderProxy/UploaderLocatorBase.cs [23:43]


    public string? Locate()
    {
        Logger.LogDebug("Locating uploader by locator. Priority: {priority}.", Priority);
        string? uploaderFullPath = GetUploaderFullPath();

        if (string.IsNullOrEmpty(uploaderFullPath))
        {
            Logger.LogDebug("Uploader can't be located.");
            return null;
        }

        if (FileService.Exists(uploaderFullPath!))
        {
            Logger.LogDebug("Uploader found: {filePath}", uploaderFullPath);
            return uploaderFullPath;
        }

        Logger.LogDebug("Uploader not found: {filePath}", uploaderFullPath);

        return null;
    }