text: import { ServiceKey } from '@microsoft/sp-core-library';
  var GraphHttpClientContext =  (function () {
      function GraphHttpClientContext(serviceScope) {
      }
      GraphHttpClientContext.prototype.initialize = function (webServerRelativeUrl, graphEndpointUrl) {
          if (this._isInitialized) {
              throw new Error('GraphHttpClientContext has already been initialized.');
          }
          this._isInitialized = true;
          this._webServerRelativeUrl = webServerRelativeUrl;
          this._graphEndpointUrl = graphEndpointUrl;
      };
      GraphHttpClientContext.prototype.getGraphEndpointUrl = function () {
          if (!this._isInitialized) {
              throw new Error('This operation cannot be performed until the GraphHttpClientContext is initialized.');
          }
          return this._graphEndpointUrl;
      };
      GraphHttpClientContext.prototype.getWebServerRelativeUrl = function () {
          if (!this._isInitialized) {
              throw new Error('This operation cannot be performed until the GraphHttpClientContext is initialized.');
          }
          return this._webServerRelativeUrl;
      };
      GraphHttpClientContext.serviceKey = ServiceKey.create('sp-http:GraphHttpClientContext', GraphHttpClientContext);
      return GraphHttpClientContext;
  }());
  export default GraphHttpClientContext;
  