/// <summary>
        /// Sets the <see cref="GrpcServiceClient"/> as the client for
        /// search service communication.
        /// </summary>
        /// <param name="repositoryBuilder">The <see cref="IRepositoryBuilder"/> instance.</param>
        /// <param name="serviceAddress">Url of the gRPC search service.</param>
        /// <param name="configure">Optional configure method.</param>
        public static IRepositoryBuilder UseLucene29CentralizedGrpcServiceClient(this IRepositoryBuilder repositoryBuilder,
                                                                                 string serviceAddress,
                                                                                 Action <GrpcChannelOptions> configure = null)
        {
            var options = new GrpcChannelOptions();

            configure?.Invoke(options);

            repositoryBuilder.UseLucene29CentralizedServiceClient(CreateGrpcServiceClient(serviceAddress, options));

            SnLog.WriteInformation("GrpcServiceClient set as Lucene29 Centralized Service Client.");

            return(repositoryBuilder);
        }