private void InitEventSource() { source = new EventSource(naming.NamespaceName, naming.DecoupledProviderInstanceName); }
public TypeInfo(EventSource source, SchemaNaming naming, Type converterType) { this.batchSize = 64; this.batchEvents = true; this.converterType = converterType; this.source = source; object obj = Activator.CreateInstance(converterType); this.convertFunctionNoBatch = (ConvertToWMI)Delegate.CreateDelegate(typeof(ConvertToWMI), obj, "ToWMI"); this.SetBatchSize(this.batchSize); }
public TypeInfo(EventSource source, SchemaNaming naming, Type converterType) { this.converterType = converterType; this.source = source; Object converter = Activator.CreateInstance(converterType); convertFunctionNoBatch = (ConvertToWMI)Delegate.CreateDelegate(typeof(ConvertToWMI), converter, "ToWMI"); // NOTE: wbemObjects[0] will get initialized in SetBatchSize if batchSize == 1 SetBatchSize(batchSize); }