/// <summary> /// Create the ensemble provider for this registry, by invoking /// <see cref="RegistryBindingSource.SupplyBindingInformation()"/> /// on /// the provider stored in /// <see cref="bindingSource"/> /// Sets /// <see cref="ensembleProvider"/> /// to that value; /// sets /// <see cref="connectionDescription"/> /// to the binding info /// for use in toString and logging; /// </summary> protected internal virtual void CreateEnsembleProvider() { BindingInformation binding = bindingSource.SupplyBindingInformation(); connectionDescription = binding.description + " " + securityConnectionDiagnostics; ensembleProvider = binding.ensembleProvider; }
/// <summary>Supply the binding information.</summary> /// <remarks> /// Supply the binding information. /// This implementation returns a fixed ensemble bonded to /// the quorum supplied by /// <see cref="BuildConnectionString()"/> /// </remarks> /// <returns>the binding information</returns> public virtual BindingInformation SupplyBindingInformation() { BindingInformation binding = new BindingInformation(); string connectString = BuildConnectionString(); binding.ensembleProvider = new FixedEnsembleProvider(connectString); binding.description = "fixed ZK quorum \"" + connectString + "\""; return(binding); }