Example #1
0
 public WMIDataStoreProvider(string datastoreName) : base()
 {
     instanceProvidersBase = WMIDataStoreProviders.Instance();
     Name = datastoreName;
     instanceProvidersBase.AddDataStoreInfo(Name, false);
     Instrumentation.Publish(this);
 }
Example #2
0
 public static WMIDataStoreProvidersBase Instance()
 {
     lock (syncObj)
     {
         if (instance == null)
         {
             instance = new WMIDataStoreProviders();
         }
     }
     return(instance);
 }
Example #3
0
        public void EndExecute(ICursor cursor, IGxConnection con)
        {
            if (con != null)
            {
                con.LastSQLStatementEnded = true;
            }

            DataStoreProviderInfo dsInfo = WMIDataStoreProviders.Instance().GetDataStoreProviderInfo(this.name);
            SentenceInfo          sInfo  = dsInfo.GetSentenceInfo(this.name + "_" + cursor.Id);
            long diff = DateTime.Now.Subtract(beginExecute).Ticks / TimeSpan.TicksPerMillisecond;

            sInfo.setTimeExecute(diff);
        }