public AsyncApiDocument GetDocument(AsyncApiOptions options, AsyncApiDocument prototype) { if (options == null) { throw new ArgumentNullException(nameof(options)); } var asyncApiTypes = GetAsyncApiTypes(options, prototype); var document = _documentGenerator.GenerateDocument(asyncApiTypes, options, prototype, _serviceProvider); return(document); }