Skip to content

HVC File Push Api — Workers

  • Project: hvc-filePushApi

FilePushService (Services/FilePushService.cs)

A BackgroundService with a 1-second polling loop:

  1. Lists files in the configured directory.
  2. Picks files that match the recording pattern (contain __, i.e. the env__eventId__tenantId__... naming convention).
  3. Uploads each to the configured Azure Blob container (optionally prefixing the container name with the environment).
  4. Deletes the local file once the upload succeeds.

Services/SimpleAzureBlobFileSystem.cs is a small local copy of the blob wrapper (the project intentionally does not depend on hvc-storage).

Health check

  • GET /"I'm up".

Released under the MIT License.