public void Conclude() { if (null == _aeron) { _aeron = Adaptive.Aeron.Aeron.Connect( new Aeron.Aeron.Context() .AeronDirectoryName(_aeronDirectoryName) .ErrorHandler(_errorHandler)); _ownsAeronClient = true; } if (null == _idleStrategy) { _idleStrategy = new BackoffIdleStrategy(1, 10, 1, 1); } if (null == _credentialsSupplier) { _credentialsSupplier = new NullCredentialsSupplier(); } if (null == _sessionMessageListener) { _sessionMessageListener = new MissingSessionMessageListner(); } }
public void Conclude() { if (null == _aeron) { _aeron = Adaptive.Aeron.Aeron.Connect(new Aeron.Aeron.Context().AeronDirectoryName(_aeronDirectoryName)); _ownsAeronClient = true; } if (null == _idleStrategy) { _idleStrategy = new BackoffIdleStrategy(1, 10, 1, 1); } if (null == _lock) { _lock = new ReentrantLock(); } if (null == _credentialsSupplier) { _credentialsSupplier = new NullCredentialsSupplier(); } }
/// <summary> /// Set the <seealso cref="ICredentialsSupplier"/> to be used for authentication with the cluster. /// </summary> /// <param name="credentialsSupplier"> to be used for authentication with the cluster. </param> /// <returns> this for fluent API. </returns> public Context CredentialsSupplier(ICredentialsSupplier credentialsSupplier) { _credentialsSupplier = credentialsSupplier; return(this); }