Ejemplo n.º 1
0
        /// <summary>
        /// Configures the factory to use a builder for proxy creation with specific options.
        /// </summary>
        /// <typeparam name="TContract">The service contract type.</typeparam>
        /// <param name="builder">The proxy builder.</param>
        /// <param name="configure">The action to configure options.</param>
        public void AddClient <TContract>(IClientBuilder <TContract> builder, Action <ServiceModelGrpcClientOptions>?configure = null)
            where TContract : class
        {
            builder.AssertNotNull(nameof(builder));

            RegisterClient(builder, configure);
        }