Skip to content

Latest commit

 

History

History
58 lines (31 loc) · 2.37 KB

README.md

File metadata and controls

58 lines (31 loc) · 2.37 KB

Hyperbee.Resources

Usage

Implement IResourceLocator and set the implementation's namespace to your resource location.

Inject IResourceProvider to use.

For example:

this gives the path to the resources

public class MyResourceLocator : IResourceLocator { public string Namespace => typeof(MyResourceLocator).Namespace; }

register the provider

  • services.AddTransient<IResourceProvider<MyResourceLocator>>();
  • var locator = services.GetService<IResourceProvider<MyResourceLocator>>();
  • var resource = ResourceHelper.GetResource( locator, "resourceName" );

Build Requirements

  • To build and run this project, .NET 9 SDK is required.
  • Ensure your development tools are compatible with .NET 8 or higher.

Building the Project

  • With .NET 9 SDK installed, you can build the project using the standard dotnet build command.

Running Tests

  • Run tests using the dotnet test command as usual.

Status

Branch Action
develop Build status
main Build status

Benchmarks

See Benchmarks

Help

See Todo

Hyperbee.Resources