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); }
public string CreateUrl() { IGraphApiUrlFormatter formatter = this.Environment?.UrlFormatter; return(formatter?.FormatUrl(this) ?? String.Empty); }