You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 27, 2026. It is now read-only.
Registering in-memory data source on dependency injection and using service provider.
// Registering in-memory data source on dependency injection.(...)services.AddInMemoryRulesDataSource<ContentTypes,ConditionTypes>(ServiceLifetime.Singleton);(...)// Creating the rules engine specifying as parameter the service provider.RulesEngine<ContentTypes,ConditionTypes>rulesEngine=RulesEngineBuilder.CreateRulesEngine().WithContentType<ContentTypes>().WithConditionType<ConditionTypes>().SetInMemoryDataSource(serviceProvider).Build();
Keep in mind that a in-memory data source is volatile, and will need you to build a rules engine and add rules everytime you start your application.