/// Example Implementation
using SanteDB.Core.Security.Services;
/// Other usings here
public class MyRoleProviderService : SanteDB.Core.Security.Services.IRoleProviderService {
public String ServiceName => "My own IRoleProviderService service";
/// <summary>
/// Creates a role
/// </summary>
public void CreateRole(String roleName,IPrincipal principal){
throw new System.NotImplementedException();
}
/// <summary>
/// Add users to roles
/// </summary>
public void AddUsersToRoles(String[] users,String[] roles,IPrincipal principal){
throw new System.NotImplementedException();
}
/// <summary>
/// Remove users from specified roles
/// </summary>
public void RemoveUsersFromRoles(String[] users,String[] roles,IPrincipal principal){
throw new System.NotImplementedException();
}
/// <summary>
/// Find all users in a specified role
/// </summary>
public String[] FindUsersInRole(String role){
throw new System.NotImplementedException();
}
/// <summary>
/// Get all roles
/// </summary>
public String[] GetAllRoles(){
throw new System.NotImplementedException();
}
/// <summary>
/// Get all roles
/// </summary>
public String[] GetAllRoles(String userName){
throw new System.NotImplementedException();
}
/// <summary>
/// User user in the specified role
/// </summary>
public Boolean IsUserInRole(String userName,String roleName){
throw new System.NotImplementedException();
}
}