Class BowirePaths
- Namespace
- Kuestenlogik.Bowire.Projects
- Assembly
- Kuestenlogik.Bowire.dll
Static entry point to the active IBowirePathResolver (#616).
public static class BowirePaths
- Inheritance
-
BowirePaths
- Inherited Members
Remarks
Injecting the resolver is the better shape and is what anything with a constructor should do. This exists for the call sites that have no constructor to inject into — static properties read during type initialisation, before any host is built. Without it those keep their own copy of the path logic, which is the thing #616 is about.
It mirrors BowireUserContext deliberately: same shape, same swap-at-startup story, so there is one pattern to learn rather than two.
Properties
Current
The resolver everything static goes through. A host replaces it at start-up; tests replace it to redirect a whole tree.
public static IBowirePathResolver Current { get; set; }
Property Value
Methods
Resolve(BowireStorageScope, params string[])
Resolve under the active resolver. See Resolve(BowireStorageScope, params string[]).
public static string Resolve(BowireStorageScope scope, params string[] segments)
Parameters
scopeBowireStorageScopesegmentsstring[]
Returns
Root(BowireStorageScope)
The root for scope, with no segments added.
public static string Root(BowireStorageScope scope)
Parameters
scopeBowireStorageScope