public static async Task <Uri> GetSessionLauncherAsync(SessionInitInfoBase info, Binding binding) { string headnode = await info.ResolveHeadnodeMachineAsync().ConfigureAwait(false); bool isAadUser = info.IsAadOrLocalUser; return(GetSessionLauncher(headnode, binding, isAadUser)); }
private static EndpointAddress GetEndpoint(SessionInitInfoBase info) { if (info.TransportScheme == TransportScheme.AzureStorage) { return(new EndpointAddress(new Uri(TelepathyConstants.SessionLauncherAzureTableBindingAddress))); } return(GetEndpoint(new Uri(info.GetSessionLauncherAddressAsync().GetAwaiter().GetResult()), info.IsAadOrLocalUser)); }
/// <summary> /// Initializes a new instance of the BrokerLauncherClient class. /// </summary> /// <param name="uri">The broker launcher EPR</param> /// <param name="binding">indicting the binding</param> public BrokerLauncherClient(SessionInitInfoBase info, Binding binding, Uri uri) : base(binding ?? info.GetBrokerBinding(), GetEndpoint(uri, info)) { this.InitAzureOrAadOrCertAuth(info, info.Username, info.InternalPassword); }
internal static async Task <CredType> GetCredTypeFromClusterAsync(SessionInitInfoBase info, Binding binding) => await GetCredTypeFromClusterAsync(await info.ResolveHeadnodeMachineAsync().ConfigureAwait(false), binding, info.IsAadOrLocalUser).ConfigureAwait(false);