Пример #1
0
 public static void GenerateWmiObjects(CustomCacheManagerData data,
                                       ICollection <ConfigurationSetting> wmiSettings)
 {
     wmiSettings.Add(
         new CustomCacheManagerSetting(data.Name,
                                       data.Type.AssemblyQualifiedName,
                                       CustomDataWmiMapperHelper.GenerateAttributesArray(data.Attributes)));
 }
Пример #2
0
 protected override void GenerateWmiObjects(MockCustomProviderData configurationObject,
                                            System.Collections.Generic.ICollection <ConfigurationSetting> wmiSettings)
 {
     wmiSettings.Add(
         new MockCustomProviderSetting(configurationObject.Name,
                                       configurationObject.TypeName,
                                       CustomDataWmiMapperHelper.GenerateAttributesArray(configurationObject.Attributes)));
 }
 public static void GenerateWmiObjects(CustomTraceListenerData data,
                                       ICollection <ConfigurationSetting> wmiSettings)
 {
     wmiSettings.Add(
         new CustomTraceListenerSetting(data,
                                        data.Name,
                                        data.Type.AssemblyQualifiedName,
                                        data.InitData,
                                        CustomDataWmiMapperHelper.GenerateAttributesArray(data.Attributes),
                                        data.TraceOutputOptions.ToString(),
                                        data.Filter.ToString(),
                                        data.Formatter));
 }