예제 #1
0
 private void InitEventSource()
 {
     source = new EventSource(naming.NamespaceName, naming.DecoupledProviderInstanceName);
 }
예제 #2
0
			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);
			}
예제 #3
0
            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);
            }