/// <summary> /// Creates a new instance of Rhino.Agent.Controllers.WidgetController /// </summary> public WidgetController(IServiceProvider provider) { appSettings = provider.GetRequiredService <IConfiguration>(); manager = provider.GetRequiredService <RhinoKbRepository>(); types = provider.GetRequiredService <IEnumerable <Type> >(); logger = provider.GetRequiredService <ILogger>().CreateChildLogger(loggerName: nameof(WidgetController)); client = provider.GetRequiredService <Orbit>(); }