/// <summary> /// Removes a graph from the map, and then invokes dispose on the graph instance /// </summary> /// <param name="graph">The graph instance to release</param> public static void RemoveAndDisposeGraph(BaseGraph graph) { lock (_graphMap) { _graphMap.Remove(graph.SourceConfig.SourceName); } graph.Dispose(true); }