Skip to content

Provide Default Workspace Id At Startup #305

@Psypher9

Description

@Psypher9

AC

  • When I add the Clockify Service to a DI container, I can optionally provide a default Workspace ID for all requests.
  • If I do not add a default Workspace ID, then I am only presented with an exception at request execution when I've not provided a Workspace ID.

Example:

builder.Services.AddClockifyClient(options => 
{
     options.WorkspaceId = builder.Configuration["Clockify:WorkspaceId"]
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions