BeerDrinkin.iOS.Helpers.AppInsights.AppInsights C# (CSharp) Method

AppInsights() public method

public AppInsights ( ) : System
return System
        public AppInsights()
        {
            RaygunClient.Initialize(Keys.CrashReportingKey).AttachPulse();

            var appVersion = NSBundle.MainBundle.ObjectForInfoDictionary("CFBundleShortVersionString").ToString();
            var buildNumber = NSBundle.MainBundle.ObjectForInfoDictionary("CFBundleVersion").ToString();
            var applicationVersion = $"{appVersion}.{buildNumber}";

            RaygunClient.Current.ApplicationVersion = applicationVersion;
        }