Beispiel #1
0
 public Task DeleteGroupAsync(string groupName)
 {
     if (string.IsNullOrEmpty(groupName))
     {
         throw new ArgumentNullException(groupName);
     }
     AGF.DeleteGroup(groupName);
     return(Task.CompletedTask);
 }
Beispiel #2
0
 public Task AddGroupsAsync(string[] groupNames)
 {
     if (groupNames == null)
     {
         throw new ArgumentNullException(nameof(groupNames));
     }
     foreach (var s in groupNames)
     {
         if (!string.IsNullOrEmpty(s))
         {
             AGF.AddGroup(s);
         }
     }
     return(Task.CompletedTask);
 }
Beispiel #3
0
        public Task <List <string> > GetGroupsAsync()
        {
            var gs = AGF.GetRecord();

            return(Task.FromResult(gs));
        }
Beispiel #4
0
 public void Dispose()
 {
     AGF.Dispose();
     GPF.Dispose();
     APF.Dispose();
 }