<commit_before>﻿namespace WebJobs.ApplicationInsightsTracer.Bindings
{
    using System;
    using Microsoft.Azure.WebJobs.Host.Bindings;
    using Tracing;

    public class AITracerValueProvider : IValueProvider
    {
        private readonly AIWebJobTracer _aiWebjobTracer;
        private readonly string _instrumentationKey;

        public AITracerValueProvider(AIWebJobTracer aiWebjobTracer, string instrumentationKey)
        {
            _aiWebjobTracer = aiWebjobTracer;
            _instrumentationKey = instrumentationKey;
        }

        public object GetValue()
        {
            return _aiWebjobTracer;
        }

        public string ToInvokeString()
        {
            return _instrumentationKey;
        }

        public Type Type => typeof (AIWebJobTracer);
    }
}<commit_msg>Fixed async binding in IValueProvider adding support to WebJobs SDK 2.0.<commit_after>﻿namespace WebJobs.ApplicationInsightsTracer.Bindings
{
    using System;
    using System.Threading.Tasks;
    using Microsoft.Azure.WebJobs.Host.Bindings;
    using Tracing;

    public class AITracerValueProvider : IValueProvider
    {
        private readonly AIWebJobTracer _aiWebjobTracer;
        private readonly string _instrumentationKey;

        public AITracerValueProvider(AIWebJobTracer aiWebjobTracer, string instrumentationKey)
        {
            _aiWebjobTracer = aiWebjobTracer;
            _instrumentationKey = instrumentationKey;
        }

        public object GetValue()
        {
            return _aiWebjobTracer;
        }

        public Task<object> GetValueAsync()
        {
            return Task.FromResult(GetValue());
        }

        public string ToInvokeString()
        {
            return _instrumentationKey;
        }

        public Type Type => typeof (AIWebJobTracer);
    }
}
{'fraction_non_alphanumeric': 0.05756578947368421, 'fraction_numerical': 0.0010964912280701754, 'mean_word_length': 2.392193308550186, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3403021', 'n_tokens_mistral': 505, 'n_tokens_neox': 487, 'n_words': 105}