Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1768 for trunk/sources


Ignore:
Timestamp:
05/08/09 14:11:13 (16 years ago)
Author:
mbecirov
Message:

#586 extended the interface for HivePermissionManager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.Core/3.2/ServiceLocator.cs

    r1648 r1768  
    5151  private static IPermissionManager permManager = null;
    5252
     53  private static IHivePermissionManager hivePermManager = null;
     54
    5355  /// <summary>
    5456  /// Gets the client manager
     
    9698      lifecycleManager = new LifecycleManager();
    9799    }
    98 
    99100    return lifecycleManager;
    100101  }
     
    144145   
    145146  }
     147
     148  /// <summary>
     149  /// Gets the permission manager
     150  /// </summary>
     151  /// <returns></returns>
     152  [MethodImpl(MethodImplOptions.Synchronized)]
     153  public static IHivePermissionManager GetHivePermissionManager() {
     154    if (hivePermManager == null)
     155      hivePermManager = discoveryService.GetInstances<IHivePermissionManager>()[0];
     156    return hivePermManager;
     157
     158  }
    146159}
Note: See TracChangeset for help on using the changeset viewer.