34 lines
924 B
C#
34 lines
924 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Specialized;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading;
|
|
using Taloyhtio.CustomRoleProvider;
|
|
|
|
namespace ConsoleTest
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
var p = new CustomRoleProvider();
|
|
NameValueCollection coll = new NameValueCollection();
|
|
coll["connectionStringName"] = "TaloyhtioFBA_String";
|
|
coll["applicationName"] = "/";
|
|
p.Initialize("Taloyhtio_Role", coll);
|
|
|
|
|
|
var result = p.FindUsersInRole(Constants.ALL_FBA_USERS_GROUP_NAME, "Vaahteranummi");
|
|
if (result != null && result.Length > 0)
|
|
{
|
|
foreach (string item in result)
|
|
{
|
|
Console.Write(item + "\n");
|
|
}
|
|
Thread.Sleep(10000);
|
|
}
|
|
}
|
|
}
|
|
}
|