* Returns cached instance of {@apilink StorageClient} using options as defined in the environment variables or in * this {@apilink Configuration} instance. Only first call of this method will create the client, following calls will * return the same client instance. * * Caching w
()
| 410 | * @internal |
| 411 | */ |
| 412 | getStorageClient(): StorageClient { |
| 413 | if (this.options.has('storageClient')) { |
| 414 | return this.options.get('storageClient') as StorageClient; |
| 415 | } |
| 416 | |
| 417 | const options = this.options.get('storageClientOptions') as Dictionary; |
| 418 | return this.createMemoryStorage(options); |
| 419 | } |
| 420 | |
| 421 | getEventManager(): EventManager { |
| 422 | if (this.options.has('eventManager')) { |
no test coverage detected