コード例 #1
0
ファイル: RrdGraph.cs プロジェクト: mujing/rrd4net
 /**
  * Creates graph from the corresponding {@link RrdGraphDef} object.
  *
  * @param gdef Graph definition
  *
  * @ Thrown in case of I/O error
  */
 public RrdGraph(RrdGraphDef gdef, RrdDbAccessInterface rrdDbAccess)
 {
    DbAccessInterface = rrdDbAccess;
    this.gdef = gdef;
    worker = new ImageWorker(1, 1); // Dummy worker, just to start with something
    try
    {
       createGraph();
    }
    finally
    {
       worker.dispose();
       worker = null;
       dproc = null;
    }
 }
コード例 #2
0
ファイル: RrdGraph.cs プロジェクト: jlkjxyshangli/rrd4net
 /**
  * Creates graph from the corresponding {@link RrdGraphDef} object.
  *
  * @param gdef Graph definition
  *
  * @ Thrown in case of I/O error
  */
 public RrdGraph(RrdGraphDef gdef, RrdDbAccessInterface rrdDbAccess)
 {
     DbAccessInterface = rrdDbAccess;
     this.gdef         = gdef;
     worker            = new ImageWorker(1, 1); // Dummy worker, just to start with something
     try
     {
         createGraph();
     }
     finally
     {
         worker.dispose();
         worker = null;
         dproc  = null;
     }
 }