Class KEFCore
- Namespace
- MASES.EntityFrameworkCore.KNet
- Assembly
- MASES.EntityFrameworkCore.KNet.dll
This is the primary class shall be used to initialize the environment to use Entity Framework Core for Apache Kafka
public class KEFCore : KNetCore<KEFCore>, IJVMWrapperManagement, IJVMBridgeCore
- Inheritance
-
KEFCore
- Implements
- Inherited Members
-
SetupJVMWrapper<KEFCore>.ScopedOnSetupJVMWrapper<KEFCore>.ScopedOnVersionSetupJVMWrapper.Initialize()SetupJVMWrapper.InitializeRemote()
Examples
The most simple way to use this class is to execute the following code at the beginning of the application:
KEFCore.CreateGlobalInstance();
The class reads configuration parameters in multiple ways: command line, environment variables and code override. To insert values in the code an user can create a custom class like the following and overrides the interested properties:
public class CustomKEFCore : KEFCore
{
public override string JVMPath => "MySpecialPath";
}
Properties
PreserveInformationAcrossContexts
public static bool PreserveInformationAcrossContexts { get; set; }
Property Value
Remarks
This value is read only once when application starts: if the backend uses Apache Kafka Streams (i.e. UseCompactedReplicator is false), the value is read to understand how to manage Streams instances lifetime
Methods
DefaultLog4JConfiguration()
Returns the default configuration file to use when initializing command line defaults
protected override string DefaultLog4JConfiguration()
Returns
- string
The configuration file to use for logging
Remarks
Overrides in derived classes to give another default file