// ReSharper disable once SuggestBaseTypeForParameter (controllers are scoped) public MediaController(IMediaStore store, IOptionsSnapshot <WebServerOptions> options) { _store = store; _store.Init(Path.Combine(Constants.DefaultRootPath, $"{options.Value.PublicKeyString}_media.egg")); }