public async Task <TDMemberProfile> TestBuiltinSettingsAsync(ESBuiltinAuthModuleSettings settings, string username, string password, Func <Partial <TDMemberProfile>, Partial <TDMemberProfile> >?partial = null, CancellationToken cancellationToken = default)
            {
                var queryParameters = new NameValueCollection();

                queryParameters.Append("$fields", (partial != null ? partial(new Partial <TDMemberProfile>()) : Partial <TDMemberProfile> .Default()).ToString());

                return(await _connection.RequestResourceAsync <AuthModulesTestBuiltInPostRequest, TDMemberProfile>("POST", $"api/http/auth-modules/test/built-in{queryParameters.ToQueryString()}",
                                                                                                                   new AuthModulesTestBuiltInPostRequest
                {
                    Settings = settings,
                    Username = username,
                    Password = password,
                }, cancellationToken));
            }
Ejemplo n.º 2
0
 public AuthModulesTestBuiltInPostRequest(ESBuiltinAuthModuleSettings settings, string username, string password)
 {
     Settings = settings;
     Username = username;
     Password = password;
 }