/// <summary> /// Default constructor. All parameters passed via dependency injection. /// </summary> /// <param name="hashRequestQueue">Queue for incoming requests. <see cref="SearchHub"/> for further details. </param> /// <param name="index">netMIH index for lookups (populated at startup)</param> /// <param name="hubContext">Context for SearchHub (<see cref="SearchHub"/></param> /// <param name="wrapper">PDQ wrapper</param> /// <param name="options">Configurable options</param> public HashService(IBackgroundTaskQueue <Tuple <byte[], string, string> > hashRequestQueue, netMIH.Index index, IHubContext <SearchHub> hubContext, PDQWrapper wrapper, IOptions <HashServiceOptions> options) { _hashRequestQueue = hashRequestQueue; _hubContext = hubContext; _wrapper = wrapper; _options = options; }
/// <summary> /// Default constructor /// </summary> /// <param name="index">netMIH index (provided via dependency injection</param> /// <param name="wrapper">PDQWrapper (provided via dependency injection</param> public PDQController(netMIH.Index index, PDQWrapper wrapper) { this._index = index; this._wrapper = wrapper; }