Skip to content

Commit

Permalink
chore: Regenerate all APIs with new generator
Browse files Browse the repository at this point in the history
This adds IServiceCollection extension methods for client registration where an IServiceProvider is required.
  • Loading branch information
jskeet committed Apr 23, 2024
1 parent b0b6470 commit 022fab2
Show file tree
Hide file tree
Showing 239 changed files with 9,541 additions and 335 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,23 @@ public static partial class ServiceCollectionExtensions
action?.Invoke(builder);
return builder.Build(provider);
});

/// <summary>
/// Adds a singleton <see cref="gaav::AnalyticsAdminServiceClient"/> to <paramref name="services"/>.
/// </summary>
/// <param name="services">
/// The service collection to add the client to. The services are used to configure the client when requested.
/// </param>
/// <param name="action">
/// An optional action to invoke on the client builder. This is invoked before services from
/// <paramref name="services"/> are used.
/// </param>
public static IServiceCollection AddAnalyticsAdminServiceClient(this IServiceCollection services, sys::Action<sys::IServiceProvider, gaav::AnalyticsAdminServiceClientBuilder> action) =>
services.AddSingleton(provider =>
{
gaav::AnalyticsAdminServiceClientBuilder builder = new gaav::AnalyticsAdminServiceClientBuilder();
action?.Invoke(provider, builder);
return builder.Build(provider);
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,23 @@ public static partial class ServiceCollectionExtensions
action?.Invoke(builder);
return builder.Build(provider);
});

/// <summary>
/// Adds a singleton <see cref="gaav::AnalyticsAdminServiceClient"/> to <paramref name="services"/>.
/// </summary>
/// <param name="services">
/// The service collection to add the client to. The services are used to configure the client when requested.
/// </param>
/// <param name="action">
/// An optional action to invoke on the client builder. This is invoked before services from
/// <paramref name="services"/> are used.
/// </param>
public static IServiceCollection AddAnalyticsAdminServiceClient(this IServiceCollection services, sys::Action<sys::IServiceProvider, gaav::AnalyticsAdminServiceClientBuilder> action) =>
services.AddSingleton(provider =>
{
gaav::AnalyticsAdminServiceClientBuilder builder = new gaav::AnalyticsAdminServiceClientBuilder();
action?.Invoke(provider, builder);
return builder.Build(provider);
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,23 @@ public static partial class ServiceCollectionExtensions
action?.Invoke(builder);
return builder.Build(provider);
});

/// <summary>
/// Adds a singleton <see cref="gadv::BetaAnalyticsDataClient"/> to <paramref name="services"/>.
/// </summary>
/// <param name="services">
/// The service collection to add the client to. The services are used to configure the client when requested.
/// </param>
/// <param name="action">
/// An optional action to invoke on the client builder. This is invoked before services from
/// <paramref name="services"/> are used.
/// </param>
public static IServiceCollection AddBetaAnalyticsDataClient(this IServiceCollection services, sys::Action<sys::IServiceProvider, gadv::BetaAnalyticsDataClientBuilder> action) =>
services.AddSingleton(provider =>
{
gadv::BetaAnalyticsDataClientBuilder builder = new gadv::BetaAnalyticsDataClientBuilder();
action?.Invoke(provider, builder);
return builder.Build(provider);
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,21 @@ public static partial class ServiceCollectionExtensions
action?.Invoke(builder);
return builder.Build(provider);
});

/// <summary>Adds a singleton <see cref="gacv::ChatServiceClient"/> to <paramref name="services"/>.</summary>
/// <param name="services">
/// The service collection to add the client to. The services are used to configure the client when requested.
/// </param>
/// <param name="action">
/// An optional action to invoke on the client builder. This is invoked before services from
/// <paramref name="services"/> are used.
/// </param>
public static IServiceCollection AddChatServiceClient(this IServiceCollection services, sys::Action<sys::IServiceProvider, gacv::ChatServiceClientBuilder> action) =>
services.AddSingleton(provider =>
{
gacv::ChatServiceClientBuilder builder = new gacv::ChatServiceClientBuilder();
action?.Invoke(provider, builder);
return builder.Build(provider);
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,23 @@ public static partial class ServiceCollectionExtensions
action?.Invoke(builder);
return builder.Build(provider);
});

/// <summary>
/// Adds a singleton <see cref="gaesv::SubscriptionsServiceClient"/> to <paramref name="services"/>.
/// </summary>
/// <param name="services">
/// The service collection to add the client to. The services are used to configure the client when requested.
/// </param>
/// <param name="action">
/// An optional action to invoke on the client builder. This is invoked before services from
/// <paramref name="services"/> are used.
/// </param>
public static IServiceCollection AddSubscriptionsServiceClient(this IServiceCollection services, sys::Action<sys::IServiceProvider, gaesv::SubscriptionsServiceClientBuilder> action) =>
services.AddSingleton(provider =>
{
gaesv::SubscriptionsServiceClientBuilder builder = new gaesv::SubscriptionsServiceClientBuilder();
action?.Invoke(provider, builder);
return builder.Build(provider);
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,24 @@ public static partial class ServiceCollectionExtensions
return builder.Build(provider);
});

/// <summary>
/// Adds a singleton <see cref="gamv::ConferenceRecordsServiceClient"/> to <paramref name="services"/>.
/// </summary>
/// <param name="services">
/// The service collection to add the client to. The services are used to configure the client when requested.
/// </param>
/// <param name="action">
/// An optional action to invoke on the client builder. This is invoked before services from
/// <paramref name="services"/> are used.
/// </param>
public static IServiceCollection AddConferenceRecordsServiceClient(this IServiceCollection services, sys::Action<sys::IServiceProvider, gamv::ConferenceRecordsServiceClientBuilder> action) =>
services.AddSingleton(provider =>
{
gamv::ConferenceRecordsServiceClientBuilder builder = new gamv::ConferenceRecordsServiceClientBuilder();
action?.Invoke(provider, builder);
return builder.Build(provider);
});

/// <summary>Adds a singleton <see cref="gamv::SpacesServiceClient"/> to <paramref name="services"/>.</summary>
/// <param name="services">
/// The service collection to add the client to. The services are used to configure the client when requested.
Expand All @@ -59,5 +77,21 @@ public static partial class ServiceCollectionExtensions
action?.Invoke(builder);
return builder.Build(provider);
});

/// <summary>Adds a singleton <see cref="gamv::SpacesServiceClient"/> to <paramref name="services"/>.</summary>
/// <param name="services">
/// The service collection to add the client to. The services are used to configure the client when requested.
/// </param>
/// <param name="action">
/// An optional action to invoke on the client builder. This is invoked before services from
/// <paramref name="services"/> are used.
/// </param>
public static IServiceCollection AddSpacesServiceClient(this IServiceCollection services, sys::Action<sys::IServiceProvider, gamv::SpacesServiceClientBuilder> action) =>
services.AddSingleton(provider =>
{
gamv::SpacesServiceClientBuilder builder = new gamv::SpacesServiceClientBuilder();
action?.Invoke(provider, builder);
return builder.Build(provider);
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,24 @@ public static partial class ServiceCollectionExtensions
return builder.Build(provider);
});

/// <summary>
/// Adds a singleton <see cref="gamv::ConferenceRecordsServiceClient"/> to <paramref name="services"/>.
/// </summary>
/// <param name="services">
/// The service collection to add the client to. The services are used to configure the client when requested.
/// </param>
/// <param name="action">
/// An optional action to invoke on the client builder. This is invoked before services from
/// <paramref name="services"/> are used.
/// </param>
public static IServiceCollection AddConferenceRecordsServiceClient(this IServiceCollection services, sys::Action<sys::IServiceProvider, gamv::ConferenceRecordsServiceClientBuilder> action) =>
services.AddSingleton(provider =>
{
gamv::ConferenceRecordsServiceClientBuilder builder = new gamv::ConferenceRecordsServiceClientBuilder();
action?.Invoke(provider, builder);
return builder.Build(provider);
});

/// <summary>Adds a singleton <see cref="gamv::SpacesServiceClient"/> to <paramref name="services"/>.</summary>
/// <param name="services">
/// The service collection to add the client to. The services are used to configure the client when requested.
Expand All @@ -59,5 +77,21 @@ public static partial class ServiceCollectionExtensions
action?.Invoke(builder);
return builder.Build(provider);
});

/// <summary>Adds a singleton <see cref="gamv::SpacesServiceClient"/> to <paramref name="services"/>.</summary>
/// <param name="services">
/// The service collection to add the client to. The services are used to configure the client when requested.
/// </param>
/// <param name="action">
/// An optional action to invoke on the client builder. This is invoked before services from
/// <paramref name="services"/> are used.
/// </param>
public static IServiceCollection AddSpacesServiceClient(this IServiceCollection services, sys::Action<sys::IServiceProvider, gamv::SpacesServiceClientBuilder> action) =>
services.AddSingleton(provider =>
{
gamv::SpacesServiceClientBuilder builder = new gamv::SpacesServiceClientBuilder();
action?.Invoke(provider, builder);
return builder.Build(provider);
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,21 @@ public static partial class ServiceCollectionExtensions
action?.Invoke(builder);
return builder.Build(provider);
});

/// <summary>Adds a singleton <see cref="gatv::TablesServiceClient"/> to <paramref name="services"/>.</summary>
/// <param name="services">
/// The service collection to add the client to. The services are used to configure the client when requested.
/// </param>
/// <param name="action">
/// An optional action to invoke on the client builder. This is invoked before services from
/// <paramref name="services"/> are used.
/// </param>
public static IServiceCollection AddTablesServiceClient(this IServiceCollection services, sys::Action<sys::IServiceProvider, gatv::TablesServiceClientBuilder> action) =>
services.AddSingleton(provider =>
{
gatv::TablesServiceClientBuilder builder = new gatv::TablesServiceClientBuilder();
action?.Invoke(provider, builder);
return builder.Build(provider);
});
}
}

0 comments on commit 022fab2

Please sign in to comment.