Skip to content

Read configuration from settings #2

@pBouillon

Description

@pBouillon

Overview

Instead of manually doing:

services.AddPocketBase(
  serverUrl: new Uri("..."),
  credentials: new PocketBaseClientCredentials { Identity = "...", Password = "..." },
  (config) => ...)

An alternative could offer to read the appsettings directly:

var container = new ServiceCollection()
  .AddPocketBaseFromAppSettings((config) => ...)

Goal

  • Write another extension method
  • Populate the necessary fields from the settings
  • Throw if any is missing

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreA task targeting the core of the library such as its feature or behavior.good first issueGood for newcomershacktoberfestsize: sRepresent a small task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions