mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 10:54:50 +08:00
- Creating the perf branch to have means to measure before/after.
- Adding a command to Experimental which creates sample users (used to populate profiling apps) --HG-- branch : perf
This commit is contained in:
@@ -63,5 +63,16 @@ namespace Orchard.Experimental.Commands {
|
||||
|
||||
return "AddProfilingData completed";
|
||||
}
|
||||
|
||||
[CommandName("add users")]
|
||||
public string AddUsers() {
|
||||
for (int i = 0; i < 1000; i++) {
|
||||
var user = _membershipService.CreateUser(new CreateUserParams("user" + i, "1234567", "user" + i + "@orchardproject.net", null, null, true));
|
||||
if (user == null)
|
||||
return "The authentication provider returned an error";
|
||||
|
||||
}
|
||||
return "Success";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user