Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added clear transformation registry function

  • Loading branch information...
commit a1ea32da8d8d4880128c49a7111ba07fa64ac981 1 parent d08f58f
skroonenburg skroonenburg authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 Source/Rejuicer/Rejuicer/Engine/FileTransformerRegistry.cs
8 Source/Rejuicer/Rejuicer/Engine/FileTransformerRegistry.cs
View
@@ -26,6 +26,14 @@ public static void Register(ResourceType resourceType, IFileTransformer fileTran
_transformerRegistrations[resourceType].Add(fileTransformer);
}
+ public static void ClearRegistrations(ResourceType resourceType)
+ {
+ if (_transformerRegistrations.ContainsKey(resourceType))
+ {
+ _transformerRegistrations[resourceType].Clear();
+ }
+ }
+
public static void Unregister(ResourceType resourceType, IFileTransformer fileTransformer)
{
if (_transformerRegistrations.ContainsKey(resourceType))
Please sign in to comment.
Something went wrong with that request. Please try again.