Exemple #1
0
 internal static SimpleProviderPropertyDefinition CreatePropertyDefinition(string name, Type type)
 {
     return(TransportQueueSchemaHelper.CreatePropertyDefinition(name, ExchangeObjectVersion.Exchange2010, type, PropertyDefinitionFlags.None, type.GetTypeInfo().IsValueType ? Activator.CreateInstance(type) : ((type == typeof(string)) ? string.Empty : null), PropertyDefinitionConstraint.None, PropertyDefinitionConstraint.None));
 }
Exemple #2
0
 internal static SimpleProviderPropertyDefinition CreatePropertyDefinition(string name, Type type, object defaultValue, PropertyDefinitionFlags flags = PropertyDefinitionFlags.PersistDefaultValue)
 {
     return(TransportQueueSchemaHelper.CreatePropertyDefinition(name, ExchangeObjectVersion.Exchange2010, type, flags, defaultValue, PropertyDefinitionConstraint.None, PropertyDefinitionConstraint.None));
 }