Class GrpcTransportServiceCollectionExtensions
Namespace: Cephalon.AspNetCore.Grpc.Hosting
Assembly: Cephalon.AspNetCore.Grpc.dll
Registers the gRPC ASP.NET Core transport adapter for Cephalon.
public static class GrpcTransportServiceCollectionExtensionsInheritance
Section titled “Inheritance”object ← GrpcTransportServiceCollectionExtensions
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
Section titled “Methods”AddGrpcTransport(IServiceCollection)
Section titled “ AddGrpcTransport(IServiceCollection)”Adds the gRPC transport mapper and ASP.NET Core gRPC services to the service collection.
public static IServiceCollection AddGrpcTransport(this IServiceCollection services)Parameters
Section titled “Parameters”services IServiceCollection
The target service collection.
Returns
Section titled “Returns”The same service collection for further registration.
AddGrpcTransport(WebApplicationBuilder)
Section titled “ AddGrpcTransport(WebApplicationBuilder)”Adds the gRPC transport mapper to a
public static WebApplicationBuilder AddGrpcTransport(this WebApplicationBuilder builder)Parameters
Section titled “Parameters”builder WebApplicationBuilder
The ASP.NET Core application builder to extend.
Returns
Section titled “Returns”The same builder instance for fluent composition.