public static void AddVersionEndpoint(this IServiceCollection services, Action <VersionProviderOptionsBuilder> optionsAction) { var optionsBuilder = new VersionProviderOptionsBuilder(); optionsAction.Invoke(optionsBuilder); var options = optionsBuilder.Options; var providerServicesRegister = Activator.CreateInstance(options.ProviderServicesRegisterType) as IVersionProviderServicesRegister; providerServicesRegister.RegisterRequiredServices(services, options); }
public JsonFileVersionProviderOptionsBuilderExtensionsTests() { _optionsBuilder = new VersionProviderOptionsBuilder(); }