/// <summary> /// Creates a singleton of the GraphManager /// </summary> /// <param name="config"></param> /// <returns></returns> /// <remarks>This will mean that only 1 IClusterClient will be used.</remarks> public static GraphManager Create(OrleansConfig config) { if (instance == null) { instance = new GraphManager(config); } return(instance); }
/// <summary> /// Creates a singleton of the GraphManager. /// </summary> /// <param name="client"></param> /// <returns></returns> /// <remarks>This will mean that only 1 IClusterClient will be used.</remarks> public static GraphManager Create(IClusterClient client) { if (instance == null) { instance = new GraphManager(client); } return(instance); }