/// <summary>
 /// Adds Application Insights services into service collection.
 /// </summary>
 /// <param name="services">The <see cref="IServiceCollection"/> instance.</param>
 /// <param name="options">The options instance used to configure with.</param>
 /// <returns>
 /// The <see cref="IServiceCollection"/>.
 /// </returns>
 public static IServiceCollection AddApplicationInsightsTelemetry(
     this IServiceCollection services,
     ApplicationInsightsServiceOptions options)
 {
     services.AddApplicationInsightsTelemetry();
     services.Configure((ApplicationInsightsServiceOptions o) => options.CopyPropertiesTo(o));
     return(services);
 }