Exemplo n.º 1
0
 public static void RegisterExtension(ExtensionFactory extensionFactory)
 {
     lock (_extensionRegistry)
     {
         _extensionRegistry[extensionFactory.ExtensionName] = extensionFactory;
     }
 }
Exemplo n.º 2
0
 public static void RegisterExtension(ExtensionFactory extensionFactory)
 {
     if (_extensionRegistry.ContainsKey(extensionFactory.ExtensionName))
     {
         return;
     }
     _extensionRegistry.Add(extensionFactory.ExtensionName, extensionFactory);
 }
Exemplo n.º 3
0
 public static bool TryRegisterExtension(ExtensionFactory extensionFactory)
 {
     lock (_extensionRegistry)
     {
         if (_extensionRegistry.ContainsKey(extensionFactory.ExtensionName))
         {
             return(false);
         }
         _extensionRegistry.Add(extensionFactory.ExtensionName, extensionFactory);
         return(true);
     }
 }
Exemplo n.º 4
0
 public static void RegisterExtension(ExtensionFactory extensionFactory)
 {
     _extensionRegistry.Add(extensionFactory.ExtensionName, extensionFactory);
 }