/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { IExperimentationService } from 'tas-client'; export default class TelemetryDisabledExperimentationService implements IExperimentationService { public initializePromise: Promise = Promise.resolve(); public initialFetch: Promise = Promise.resolve(); public isFlightEnabled(flight: string): boolean { return false; } public isCachedFlightEnabled(flight: string): Promise { return Promise.resolve(false); } public isFlightEnabledAsync(flight: string): Promise { return Promise.resolve(false); } public getTreatmentVariable( configId: string, name: string, ): T | undefined { return undefined; } public getTreatmentVariableAsync( configId: string, name: string, ): Promise { return Promise.resolve(undefined); } public dispose(): void { // No-op: telemetry is disabled, nothing to clean up. } }