protected RequestContext CreateRequestContextAndLogVersionInfo(Guid telemetryCorrelationId) { var requestContext = new RequestContext(ServiceBundle, telemetryCorrelationId); requestContext.Logger.Info( string.Format( CultureInfo.InvariantCulture, "MSAL {0} with assembly version '{1}', file version '{2}' and informational version '{3}'. TelemetryCorrelationId({4})", ServiceBundle.PlatformProxy.GetProductName(), MsalIdHelper.GetMsalVersion(), AssemblyUtils.GetAssemblyFileVersionAttribute(), AssemblyUtils.GetAssemblyInformationalVersion(), requestContext.TelemetryCorrelationId)); return(requestContext); }
protected RequestContext CreateRequestContextAndLogVersionInfo() { var requestContext = new RequestContext( _clientApplicationBase.AppConfig.ClientId, AuthLogger.Create(ServiceBundle.Config)); var logValue = $"AUTH '{ServiceBundle.PlatformProxy.GetProductName()}', file version '{AssemblyUtils.GetAssemblyFileVersionAttribute()}', informational version '{AssemblyUtils.GetAssemblyInformationalVersion()}'"; requestContext.Logger.Info(logValue); return(requestContext); }