Exemplo n.º 1
0
 public AadEnvironment(
     string registryName,
     string loginEndpoint,
     string graphApiEndpoint,
     IList <string> apiVersions,
     IGraphApiUrlFormatter urlFormatter)
 {
     this.RegistryName     = registryName;
     this.LoginEndpoint    = loginEndpoint;
     this.GraphApiEndpoint = graphApiEndpoint;
     this.UrlFormatter     = urlFormatter;
     this.apiVersions      = new List <string>(apiVersions);
 }
Exemplo n.º 2
0
        public string CreateUrl()
        {
            IGraphApiUrlFormatter formatter = this.Environment?.UrlFormatter;

            return(formatter?.FormatUrl(this) ?? String.Empty);
        }