Exemplo n.º 1
0
 private static void SetNonNullManifestProperty(string property, string value, PluginBuilder pluginBuilder)
 {
     if (!string.IsNullOrWhiteSpace(value))
     {
         pluginBuilder.SetProperty(property, value);
     }
 }
 private static void SetNonNullManifestProperty(string property, string value, PluginBuilder pluginBuilder)
 {
     if (!string.IsNullOrWhiteSpace(value))
     {
         pluginBuilder.SetProperty(property, value);
     }
 }
Exemplo n.º 3
0
 public static PluginBuilder SetPluginName(this PluginBuilder builder, string name)
 {
     if (builder == null)
     {
         throw new ArgumentNullException("builder");
     }
     if (string.IsNullOrWhiteSpace(name))
     {
         throw new ArgumentNullException("name");
     }
     builder.SetProperty(WellKnownPluginProperties.PluginName, name);
     return(builder);
 }
Exemplo n.º 4
0
 public static PluginBuilder SetPluginKey(this PluginBuilder builder, string key)
 {
     if (builder == null)
     {
         throw new ArgumentNullException("builder");
     }
     if (string.IsNullOrWhiteSpace(key))
     {
         throw new ArgumentNullException("key");
     }
     builder.SetProperty(WellKnownPluginProperties.Key, key);
     return(builder);
 }