示例#1
0
 /// <summary>
 /// Adds an <see cref="IIncomingGrainCallFilter"/> to the filter pipeline.
 /// </summary>
 /// <param name="services">The service collection.</param>
 /// <param name="filter">The filter.</param>
 /// <returns>The service collection.</returns>
 internal static IServiceCollection AddIncomingGrainCallFilter(this IServiceCollection services, IIncomingGrainCallFilter filter)
 {
     return(services.AddSingleton(filter));
 }
 /// <summary>
 /// Adds an <see cref="IIncomingGrainCallFilter"/> to the filter pipeline.
 /// </summary>
 /// <param name="builder">The builder.</param>
 /// <param name="filter">The filter.</param>
 /// <returns>The builder.</returns>
 public static ISiloBuilder AddIncomingGrainCallFilter(this ISiloBuilder builder, IIncomingGrainCallFilter filter)
 {
     return(builder.ConfigureServices(services => services.AddIncomingGrainCallFilter(filter)));
 }
示例#3
0
 public static IServiceCollection AddGrainCallFilter(this IServiceCollection services, IIncomingGrainCallFilter filter)
 {
     throw new NotSupportedException($"{nameof(AddGrainCallFilter)} is no longer supported. Use ISiloHostBuilder.AddIncomingGrainCallFilter(...) instead.");
 }