/// <summary> /// Releases any unmanaged resources owned by the deserializer. /// </summary> public void Dispose() { if (disposeClientOnDispose) { schemaRegistryClient.Dispose(); } }
/// <summary> /// Disposes the builder, freeing up any resources. /// </summary> protected virtual void Dispose(bool disposing) { if (disposing) { if (_disposeRegistryClient) { RegistryClient.Dispose(); } } }
public void Dispose() { if (producer != null) { producer.Dispose(); producer = null; } if (schemaRegistryClient != null) { schemaRegistryClient.Dispose(); schemaRegistryClient = null; } }
/** * How we dispose an object */ private void Dispose(bool disposing) { if (_disposed) { return; } if (disposing) { _consumerBuilder?.Unsubscribe(); _consumerBuilder?.Dispose(); _schemaRegistry?.Dispose(); } _disposed = true; }
private void Dispose(bool disposing) { if (disposing && !_disposed) { _disposed = true; try { _consumer.Close(); } finally { _schemaRegistry.Dispose(); } } }
public void Dispose() => _registry.Dispose();
/// <summary> /// Releases all resources owned by this object. /// </summary> public void Dispose() => schemaRegistryClient.Dispose();
public void Dispose() { _registry?.Dispose(); Producer?.Dispose(); }
public void Dispose() { _registry?.Dispose(); Consumer?.Dispose(); }