michaelJustin/daraja-framework

Config.GetContext is not accessible from Init

michaelJustin opened this issue · 0 comments

procedure TExceptionInInitComponent.Init(const Config: IWebComponentConfig);
var
  ContextConfig: IContextConfig;
begin
  inherited;

  Assert(Assigned(Config.GetContext));

Also for Web Filter

procedure TTestFilterWithInit.Init(const Config: IWebFilterConfig);
var
  ContextConfig: IContextConfig;
begin
  FInitParam := Config.GetInitParameter('key');

  Assert(Assigned(Config.GetContext));