<PackageReference Include="Grpc.Core.Api" Version="2.76.0" />

Grpc.Core.ChannelCredentials

public abstract class ChannelCredentials
Client-side channel credentials. Used for creation of a secure channel.
public static ChannelCredentials Insecure { get; }

Returns instance of credentials that provides no security and will result in creating an unsecure channel with no encryption whatsoever.

public static ChannelCredentials SecureSsl { get; }

Returns instance of credentials that provides SSL security.

These credentials are the same as creating SslCredentials without parameters. Apps that are using Grpc.Core can create SslCredentials directly to customize the secure SSL credentials.

Creates a new instance of channel credentials

public static ChannelCredentials Create(ChannelCredentials channelCredentials, CallCredentials callCredentials)

Creates a new instance of ChannelCredentials class by composing given channel credentials with call credentials.

public abstract void InternalPopulateConfiguration(ChannelCredentialsConfiguratorBase configurator, object state)

Populates channel credentials configurator with this instance's configuration. End users never need to invoke this method as it is part of internal implementation.