- 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:
Suha Can
2010-11-03 11:45:49 -07:00
parent c8f90ab6c4
commit f690c17be8

View File

@@ -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";
}
}
}