UNPKG

@microsoft.azure/autorest.incubator

Version:
18 lines 934 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const namespace_1 = require("../../../csharp/code-dom/namespace"); const import_1 = require("../../../csharp/code-dom/import"); class ServiceNamespace extends namespace_1.Namespace { constructor(state, objectInitializer) { super(state.model.details.csharp.namespace || "INVALID.NAMESPACE", state.project); this.state = state; this.apply(objectInitializer); if (this.state.project.defaultPipeline) { this.addUsing(new import_1.Import("static Microsoft.Rest.ClientRuntime.IEventListenerExtensions")); this.addUsing(new import_1.Import("static Microsoft.Rest.ClientRuntime.HttpRequestMessageExtensions")); } this.addUsing(new import_1.Import("static Microsoft.Rest.ClientRuntime.Extensions")); } } exports.ServiceNamespace = ServiceNamespace; //# sourceMappingURL=namespace.js.map