Asynchronously processes GraphML files.
Processing continues in an endless loop. It completes only when you cancel it or an exception is thrown.

Call ProcessGraphMLFilesAsync to process GraphML files. Call CancelAsync to stop the processing. Handle the and events to monitor the processing and cancellation.

Inheritance: Object
Exemplo n.º 1
0
    CreateGraphMLFileProcessor()
    {
        // AssertValid();

        GraphMLFileProcessor graphMLFileProcessor = new GraphMLFileProcessor();

        graphMLFileProcessor.GraphMLFileProcessingProgressChanged +=
            new ProgressChangedEventHandler(
                GraphMLFileProcessor_GraphMLFileProcessingProgressChanged);

        graphMLFileProcessor.GraphMLFileProcessingCompleted +=
            new RunWorkerCompletedEventHandler(
                GraphMLFileProcessor_GraphMLFileProcessingCompleted);

        return (graphMLFileProcessor);
    }
Exemplo n.º 2
0
        CreateGraphMLFileProcessor()
        {
            // AssertValid();

            GraphMLFileProcessor graphMLFileProcessor = new GraphMLFileProcessor();

            graphMLFileProcessor.GraphMLFileProcessingProgressChanged +=
                new ProgressChangedEventHandler(
                    GraphMLFileProcessor_GraphMLFileProcessingProgressChanged);

            graphMLFileProcessor.GraphMLFileProcessingCompleted +=
                new RunWorkerCompletedEventHandler(
                    GraphMLFileProcessor_GraphMLFileProcessingCompleted);

            return(graphMLFileProcessor);
        }