GitHub.Api.SimpleApiClient.IsEnterpriseInternal C# (CSharp) Method

IsEnterpriseInternal() private method

private IsEnterpriseInternal ( ) : Task
return Task
        async Task<bool> IsEnterpriseInternal()
        {
            var probe = enterpriseProbe.Value;
            Debug.Assert(probe != null, "Lazy<Enterprise> probe is not set, something is wrong.");
#if !DEBUG
            if (probe == null)
                return false;
#endif
            var ret = await probe.ProbeAsync(HostAddress.WebUri);
            return (ret == EnterpriseProbeResult.Ok);
        }
    }