diff --git a/.gitignore b/.gitignore
index 2c45880..76b2023 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,13 +1,140 @@
-build/
-*suo
+#--------------------------------------------------
+#------------------ .NET Related ------------------
+#--------------------------------------------------
+
+# Build Folders
+[Bb]in/
+[Oo]bj/
+
+# mstest test results
+TestResults
+
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+
+# User-specific files
+*.suo
+*.user
+*.sln.docstates
+
+# Build results
+[Dd]ebug/
+[Rr]elease/
+x64/
+*_i.c
+*_p.c
+*.ilk
+*.meta
+*.obj
+*.pch
+*.pdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.log
+*.vspscc
+*.vssscc
+.builds
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opensdf
+*.sdf
+
+# Visual Studio profiler
+*.psess
+*.vsp
+*.vspx
+
+# Guidance Automation Toolkit
+*.gpState
+
+# ReSharper is a .NET coding add-in
_ReSharper*
-*.resharper*
-bin
-obj
-Bin
-*ncrunch*
-*.DotSettings*
-release/
-UpgradeLog.xml
+
+# NCrunch
+*.ncrunch*
+.*crunch*.local.xml
+
+# Click-Once directory
+publish
+
+# Publish Web Output
+*.Publish.xml
+
+# NuGet Packages Directory
+packages/
+NuGet.exe
+
+# Windows Azure Build Output
+csx
+*.build.csdef
+
+# Windows Store app package directory
+AppPackages/
+
+# Others
+sql
+[Tt]est[Rr]esult*
+*.Cache
+ClientBin
+[Ss]tyle[Cc]op.*
+~$*
+*.dbmdl
+Generated_Code #added for RIA/Silverlight projects
+
+# Backup & report files from converting an old project file to a newer
+# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
-Restfulie.Server/CommonAssemblyInfo.cs
\ No newline at end of file
+Backup*/
+UpgradeLog*.XML
+
+#Local db
+App_Data/
+
+#Assets pipeline
+Public/
+
+#chutzpah files
+_Chutzpah*
+
+UpgradeLog*
+
+
+**/CodeMetricsReport/
+
+
+#--------------------------------------------------
+#---------------- Windows Related -----------------
+#--------------------------------------------------
+Thumbs.db
+
+#--------------------------------------------------
+#------------------ OS X Related ------------------
+#--------------------------------------------------
+.DS_Store
+
+#--------------------------------------------------
+#------------------ Sass Related ------------------
+#--------------------------------------------------
+
+.sass-cache/
+
+#--------------------------------------------------
+#----------------- Node.js Related ----------------
+#--------------------------------------------------
+npm-debug.log
+node_modules/
+bower_components/
+
+#--------------------------------------------------
+#-------------- Sublime Text Related --------------
+#--------------------------------------------------
+*.sublime-workspace
\ No newline at end of file
diff --git a/.nuget/packages.config b/.nuget/packages.config
new file mode 100644
index 0000000..f233f6e
--- /dev/null
+++ b/.nuget/packages.config
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Dependencies/Castle/Castle.Core.dll b/Dependencies/Castle/Castle.Core.dll
deleted file mode 100644
index cf89807..0000000
Binary files a/Dependencies/Castle/Castle.Core.dll and /dev/null differ
diff --git a/Dependencies/Castle/Castle.Core.xml b/Dependencies/Castle/Castle.Core.xml
deleted file mode 100644
index 41a9594..0000000
--- a/Dependencies/Castle/Castle.Core.xml
+++ /dev/null
@@ -1,4820 +0,0 @@
-
-
-
- Castle.Core
-
-
-
-
- Specifies assignment by reference rather than by copying.
-
-
-
-
- Suppresses any on-demand behaviors.
-
-
-
-
- Removes a property if null or empty string, guid or collection.
-
-
-
-
- Removes a property if matches value.
-
-
-
-
- Assigns a specific dictionary key.
-
-
-
-
- Defines the contract for customizing dictionary access.
-
-
-
-
- Copies the dictionary behavior.
-
- null if should not be copied. Otherwise copy.
-
-
-
- Determines relative order to apply related behaviors.
-
-
-
-
- Defines the contract for updating dictionary values.
-
-
-
-
- Sets the stored dictionary value.
-
- The dictionary adapter.
- The key.
- The stored value.
- The property.
- true if the property should be stored.
-
-
-
- Contract for value matching.
-
-
-
-
- Indicates that underlying values are changeable and should not be cached.
-
-
-
-
- Contract for dictionary initialization.
-
-
-
-
- Performs any initialization of the
-
- The dictionary adapter.
- The dictionary behaviors.
-
-
-
- Abstract implementation of .
-
-
-
-
- Conract for traversing a .
-
-
-
-
- Contract for creating additional Dictionary adapters.
-
-
-
-
- Contract for manipulating the Dictionary adapter.
-
-
-
-
- Contract for editing the Dictionary adapter.
-
-
-
-
- Contract for managing Dictionary adapter notifications.
-
-
-
-
- Contract for validating Dictionary adapter.
-
-
-
-
- Defines the contract for building s.
-
-
-
-
- Builds the dictionary behaviors.
-
-
-
-
-
- Abstract adapter for the support
- needed by the
-
-
-
-
- Adds an element with the provided key and value to the object.
-
- The to use as the key of the element to add.
- The to use as the value of the element to add.
- An element with the same key already exists in the object.
- key is null.
- The is read-only.-or- The has a fixed size.
-
-
-
- Removes all elements from the object.
-
- The object is read-only.
-
-
-
- Determines whether the object contains an element with the specified key.
-
- The key to locate in the object.
-
- true if the contains an element with the key; otherwise, false.
-
- key is null.
-
-
-
- Returns an object for the object.
-
-
- An object for the object.
-
-
-
-
- Removes the element with the specified key from the object.
-
- The key of the element to remove.
- The object is read-only.-or- The has a fixed size.
- key is null.
-
-
-
- Copies the elements of the to an , starting at a particular index.
-
- The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing.
- The zero-based index in array at which copying begins.
- array is null.
- The type of the source cannot be cast automatically to the type of the destination array.
- index is less than zero.
- array is multidimensional.-or- index is equal to or greater than the length of array.-or- The number of elements in the source is greater than the available space from index to the end of the destination array.
-
-
-
- Returns an enumerator that iterates through a collection.
-
-
- An object that can be used to iterate through the collection.
-
-
-
-
- Gets a value indicating whether the object has a fixed size.
-
-
- true if the object has a fixed size; otherwise, false.
-
-
-
- Gets a value indicating whether the object is read-only.
-
-
- true if the object is read-only; otherwise, false.
-
-
-
- Gets an object containing the keys of the object.
-
-
- An object containing the keys of the object.
-
-
-
- Gets an object containing the values in the object.
-
-
- An object containing the values in the object.
-
-
-
- Gets or sets the with the specified key.
-
-
-
-
-
- Gets the number of elements contained in the .
-
-
- The number of elements contained in the .
-
-
-
- Gets a value indicating whether access to the is synchronized (thread safe).
-
-
- true if access to the is synchronized (thread safe); otherwise, false.
-
-
-
- Gets an object that can be used to synchronize access to the .
-
-
- An object that can be used to synchronize access to the .
-
-
-
- Provides a generic collection that supports data binding.
-
-
- This class wraps the CLR
- in order to implement the Castle-specific .
-
- The type of elements in the list.
-
-
-
- Initializes a new instance of the class
- using default values.
-
-
-
-
- Initializes a new instance of the class
- with the specified list.
-
-
- An of items
- to be contained in the .
-
-
-
-
- Initializes a new instance of the class
- wrapping the specified instance.
-
-
- A
- to be wrapped by the .
-
-
-
-
- Defines the contract for retrieving dictionary values.
-
-
-
-
- Gets the effective dictionary value.
-
- The dictionary adapter.
- The key.
- The stored value.
- The property.
- true if return only existing.
- The effective property value.
-
-
-
- Initializes a new instance of the class
- that represents a child object in a larger object graph.
-
-
-
-
-
-
- Contract for dictionary meta-data initialization.
-
-
-
-
- Performs any initialization of the dictionary adapter meta-data.
-
- The dictionary adapter factory.
- The dictionary adapter meta.
-
-
-
-
- Checks whether or not collection is null or empty. Assumes colleciton can be safely enumerated multiple times.
-
-
-
-
-
-
- Constant to use when making assembly internals visible to Castle.Core
- [assembly: InternalsVisibleTo(CoreInternalsVisible.ToCastleCore)]
-
-
-
-
- Constant to use when making assembly internals visible to proxy types generated by DynamicProxy. Required when proxying internal types.
- [assembly: InternalsVisibleTo(CoreInternalsVisible.ToDynamicProxyGenAssembly2)]
-
-
-
-
- Identifies a property should be represented as a nested component.
-
-
-
-
- Defines the contract for building typed dictionary keys.
-
-
-
-
- Builds the specified key.
-
- The dictionary adapter.
- The current key.
- The property.
- The updated key
-
-
-
- Applies no prefix.
-
-
-
-
- Gets or sets the prefix.
-
- The prefix.
-
-
-
- Identifies the dictionary adapter types.
-
-
-
-
- Identifies an interface or property to be pre-fetched.
-
-
-
-
- Instructs fetching to occur.
-
-
-
-
- Instructs fetching according to
-
-
-
-
-
- Gets whether or not fetching should occur.
-
-
-
-
- Assigns a property to a group.
-
-
-
-
- Constructs a group assignment.
-
- The group name.
-
-
-
- Constructs a group assignment.
-
- The group name.
-
-
-
- Gets the group the property is assigned to.
-
-
-
-
- Assigns a specific dictionary key.
-
-
-
-
- Initializes a new instance of the class.
-
- The key.
-
-
-
- Initializes a new instance of the class.
-
- The compound key.
-
-
-
- Assigns a prefix to the keyed properties of an interface.
-
-
-
-
- Initializes a default instance of the class.
-
-
-
-
- Initializes a new instance of the class.
-
- The prefix for the keyed properties of the interface.
-
-
-
- Gets the prefix key added to the properties of the interface.
-
-
-
-
- Substitutes part of key with another string.
-
-
-
-
- Initializes a new instance of the class.
-
- The old value.
- The new value.
-
-
-
- Requests support for multi-level editing.
-
-
-
-
- Generates a new GUID on demand.
-
-
-
-
- Support for on-demand value resolution.
-
-
-
-
- Suppress property change notifications.
-
-
-
-
- Provides simple string formatting from existing properties.
-
-
-
-
- Gets the string format.
-
-
-
-
- Gets the format properties.
-
-
-
-
- Identifies a property should be represented as a delimited string value.
-
-
-
-
- Gets the separator.
-
-
-
-
- Converts all properties to strings.
-
-
-
-
- Gets or sets the format.
-
- The format.
-
-
-
- Suppress property change notifications.
-
-
-
-
- Contract for property descriptor initialization.
-
-
-
-
- Performs any initialization of the
-
- The property descriptor.
- The property behaviors.
-
-
-
- Assigns a prefix to the keyed properties using the interface name.
-
-
-
-
- Manages conversion between property values.
-
-
-
-
- Initializes a new instance of the class.
-
- The converter.
-
-
-
- Gets the effective dictionary value.
-
- The dictionary adapter.
- The key.
- The stored value.
- The property.
- true if return only existing.
- The effective property value.
-
-
-
-
-
-
-
-
- Uses Reflection.Emit to expose the properties of a dictionary
- through a dynamic implementation of a typed interface.
-
-
-
-
- Defines the contract for building typed dictionary adapters.
-
-
-
-
- Gets a typed adapter bound to the .
-
- The typed interface.
- The underlying source of properties.
- An implementation of the typed interface bound to the dictionary.
-
- The type represented by T must be an interface with properties.
-
-
-
-
- Gets a typed adapter bound to the .
-
- The typed interface.
- The underlying source of properties.
- An implementation of the typed interface bound to the dictionary.
-
- The type represented by T must be an interface with properties.
-
-
-
-
- Gets a typed adapter bound to the .
-
- The typed interface.
- The underlying source of properties.
- The property descriptor.
- An implementation of the typed interface bound to the dictionary.
-
- The type represented by T must be an interface with properties.
-
-
-
-
- Gets a typed adapter bound to the .
-
- The typed interface.
- The underlying source of properties.
- An implementation of the typed interface bound to the namedValues.
-
- The type represented by T must be an interface with properties.
-
-
-
-
- Gets a typed adapter bound to the .
-
- The typed interface.
- The underlying source of properties.
- An implementation of the typed interface bound to the namedValues.
-
- The type represented by T must be an interface with properties.
-
-
-
-
- Gets a typed adapter bound to the .
-
- The typed interface.
- The underlying source of properties.
- An implementation of the typed interface bound to the .
-
- The type represented by T must be an interface with properties.
-
-
-
-
- Gets a typed adapter bound to the .
-
- The typed interface.
- The underlying source of properties.
- An implementation of the typed interface bound to the .
-
- The type represented by T must be an interface with properties.
-
-
-
-
- Gets the associated with the type.
-
- The typed interface.
- The adapter meta-data.
-
-
-
- Gets the associated with the type.
-
- The typed interface.
- The property descriptor.
- The adapter meta-data.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Describes a dictionary property.
-
-
-
-
- Initializes an empty class.
-
-
-
-
- Initializes a new instance of the class.
-
- The property.
- The property behaviors.
-
-
-
- Initializes a new instance class.
-
-
-
-
- Copies an existinginstance of the class.
-
-
-
-
-
-
- Gets the key.
-
- The dictionary adapter.
- The key.
- The descriptor.
-
-
-
-
- Adds the key builder.
-
- The builder.
-
-
-
- Adds the key builders.
-
- The builders.
-
-
-
- Copies the key builders to the other
-
-
-
-
-
-
- Gets the property value.
-
- The dictionary adapter.
- The key.
- The stored value.
- The descriptor.
- true if return only existing.
-
-
-
-
- Adds the dictionary getter.
-
- The getter.
-
-
-
- Adds the dictionary getters.
-
- The getters.
-
-
-
- Copies the property getters to the other
-
-
-
-
-
-
- Sets the property value.
-
- The dictionary adapter.
- The key.
- The value.
- The descriptor.
-
-
-
-
- Adds the dictionary setter.
-
- The setter.
-
-
-
- Adds the dictionary setters.
-
- The setters.
-
-
-
- Copies the property setters to the other
-
-
-
-
-
-
- Adds the behaviors.
-
-
-
-
-
-
- Adds the behaviors.
-
-
-
-
-
-
- Adds the behaviors from the builders.
-
-
-
-
-
-
- Copies the behaviors to the other
-
-
-
-
-
-
- Copies the
-
-
-
-
-
-
-
-
-
-
- Gets the property name.
-
-
-
-
- Gets the property type.
-
-
-
-
- Gets the property.
-
- The property.
-
-
-
- Returns true if the property is dynamic.
-
-
-
-
- Gets additional state.
-
-
-
-
- Determines if property should be fetched.
-
-
-
-
- Determines if property must exist first.
-
-
-
-
- Determines if notifications should occur.
-
-
-
-
- Gets the property behaviors.
-
-
-
-
- Gets the type converter.
-
- The type converter.
-
-
-
- Gets the extended properties.
-
-
-
-
- Gets the key builders.
-
- The key builders.
-
-
-
- Gets the setter.
-
- The setter.
-
-
-
- Gets the getter.
-
- The getter.
-
-
-
- Adds the dictionary initializers.
-
- The initializers.
-
-
-
- Adds the dictionary initializers.
-
- The initializers.
-
-
-
- Copies the initializers to the other
-
-
-
-
-
-
- Adds the dictionary meta-data initializers.
-
- The meta-data initializers.
-
-
-
- Adds the dictionary meta-data initializers.
-
- The meta-data initializers.
-
-
-
- Copies the meta-initializers to the other
-
-
-
-
-
-
- Gets the initializers.
-
- The initializers.
-
-
-
- Gets the meta-data initializers.
-
- The meta-data initializers.
-
-
-
- Contract for dictionary validation.
-
-
-
-
- Determines if is valid.
-
- The dictionary adapter.
- true if valid.
-
-
-
- Validates the .
-
- The dictionary adapter.
- The error summary information.
-
-
-
- Validates the for a property.
-
- The dictionary adapter.
- The property to validate.
- The property summary information.
-
-
-
- Invalidates any results cached by the validator.
-
- The dictionary adapter.
-
-
-
-
-
-
-
-
- Initializes a new instance of the class.
-
- The name values.
-
-
-
- Determines whether the object contains an element with the specified key.
-
- The key to locate in the object.
-
- true if the contains an element with the key; otherwise, false.
-
- key is null.
-
-
-
- Adapts the specified name values.
-
- The name values.
-
-
-
-
- Gets a value indicating whether the object is read-only.
-
-
- true if the object is read-only; otherwise, false.
-
-
-
- Gets or sets the with the specified key.
-
-
-
-
-
- Helper class for retrieving attributes.
-
-
-
-
- Gets the attribute.
-
- The member.
- The member attribute.
-
-
-
- Gets the attributes. Does not consider inherited attributes!
-
- The member.
- The member attributes.
-
-
-
- Gets the type attribute.
-
- The type.
- The type attribute.
-
-
-
- Gets the type attributes.
-
- The type.
- The type attributes.
-
-
-
- Gets the type converter.
-
- The member.
-
-
-
-
- Gets the attribute.
-
- The member.
- The member attribute.
-
-
-
- Contract for typed dynamic value resolution.
-
-
-
-
-
- Contract for dynamic value resolution.
-
-
-
-
- Supporting Logger levels.
-
-
-
-
- Logging will be off
-
-
-
-
- Fatal logging level
-
-
-
-
- Error logging level
-
-
-
-
- Warn logging level
-
-
-
-
- Info logging level
-
-
-
-
- Debug logging level
-
-
-
-
- Encapsulates an invocation of a proxied method.
-
-
-
-
- Gets the value of the argument at the specified .
-
- The index.
- The value of the argument at the specified .
-
-
-
- Returns the concrete instantiation of the on the proxy, with any generic
- parameters bound to real types.
-
-
- The concrete instantiation of the on the proxy, or the if
- not a generic method.
-
-
- Can be slower than calling .
-
-
-
-
- Returns the concrete instantiation of , with any
- generic parameters bound to real types.
- For interface proxies, this will point to the on the target class.
-
- The concrete instantiation of , or
- if not a generic method.
-
- In debug builds this can be slower than calling .
-
-
-
-
- Proceeds the call to the next interceptor in line, and ultimately to the target method.
-
-
- Since interface proxies without a target don't have the target implementation to proceed to,
- it is important, that the last interceptor does not call this method, otherwise a
- will be thrown.
-
-
-
-
- Overrides the value of an argument at the given with the
- new provided.
-
-
- This method accepts an , however the value provided must be compatible
- with the type of the argument defined on the method, otherwise an exception will be thrown.
-
- The index of the argument to override.
- The new value for the argument.
-
-
-
- Gets the arguments that the has been invoked with.
-
- The arguments the method was invoked with.
-
-
-
- Gets the generic arguments of the method.
-
- The generic arguments, or null if not a generic method.
-
-
-
- Gets the object on which the invocation is performed. This is different from proxy object
- because most of the time this will be the proxy target object.
-
-
- The invocation target.
-
-
-
- Gets the representing the method being invoked on the proxy.
-
- The representing the method being invoked.
-
-
-
- For interface proxies, this will point to the on the target class.
-
- The method invocation target.
-
-
-
- Gets the proxy object on which the intercepted method is invoked.
-
- Proxy object on which the intercepted method is invoked.
-
-
-
- Gets or sets the return value of the method.
-
- The return value of the method.
-
-
-
- Gets the type of the target object for the intercepted method.
-
- The type of the target object.
-
-
-
- Used during the target type inspection process. Implementors have a chance to customize the
- proxy generation process.
-
-
-
-
- Invoked by the generation process to notify that the whole process has completed.
-
-
-
-
- Invoked by the generation process to notify that a member was not marked as virtual.
-
- The type which declares the non-virtual member.
- The non-virtual member.
-
- This method gives an opportunity to inspect any non-proxyable member of a type that has
- been requested to be proxied, and if appropriate - throw an exception to notify the caller.
-
-
-
-
- Invoked by the generation process to determine if the specified method should be proxied.
-
- The type which declares the given method.
- The method to inspect.
- True if the given method should be proxied; false otherwise.
-
-
-
- Interface describing elements composing generated type
-
-
-
-
- Performs some basic screening and invokes the
- to select methods.
-
-
-
-
-
-
-
-
- Provides functionality for disassembling instances of attributes to CustomAttributeBuilder form, during the process of emiting new types by Dynamic Proxy.
-
-
-
-
- Disassembles given attribute instance back to corresponding CustomAttributeBuilder.
-
- An instance of attribute to disassemble
- corresponding 1 to 1 to given attribute instance, or null reference.
-
- Implementers should return that corresponds to given attribute instance 1 to 1,
- that is after calling specified constructor with specified arguments, and setting specified properties and fields with values specified
- we should be able to get an attribute instance identical to the one passed in . Implementer can return null
- if it wishes to opt out of replicating the attribute. Notice however, that for some cases, like attributes passed explicitly by the user
- it is illegal to return null, and doing so will result in exception.
-
-
-
-
- Handles error during disassembly process
-
- Type of the attribute being disassembled
- Exception thrown during the process
- usually null, or (re)throws the exception
-
-
-
- Here we try to match a constructor argument to its value.
- Since we can't get the values from the assembly, we use some heuristics to get it.
- a/ we first try to match all the properties on the attributes by name (case insensitive) to the argument
- b/ if we fail we try to match them by property type, with some smarts about convertions (i,e: can use Guid for string).
-
-
-
-
- We have the following rules here.
- Try to find a matching type, failing that, if the parameter is string, get the first property (under the assumption that
- we can convert it.
-
-
-
-
- Attributes can only accept simple types, so we return null for null,
- if the value is passed as string we call to string (should help with converting),
- otherwise, we use the value as is (enums, integer, etc).
-
-
-
-
- Applied to the assemblies saved by in order to persist the cache data included in the persisted assembly.
-
-
-
-
- Base class that exposes the common functionalities
- to proxy generation.
-
-
-
-
- It is safe to add mapping (no mapping for the interface exists)
-
-
-
-
-
-
-
- Generates a parameters constructor that initializes the proxy
- state with just to make it non-null.
-
- This constructor is important to allow proxies to be XML serializable
-
-
-
-
-
- Generates the constructor for the class that extends
-
-
-
-
-
-
-
-
- Default implementation of interface producing in-memory proxy assemblies.
-
-
-
-
- Abstracts the implementation of proxy type construction.
-
-
-
-
- Creates a proxy type for given , implementing , using provided.
-
- The class type to proxy.
- Additional interface types to proxy.
- The proxy generation options.
- The generated proxy type.
-
- Implementers should return a proxy type for the specified class and interfaces.
- Additional interfaces should be only 'mark' interfaces, that is, they should work like interface proxy without target. (See method.)
-
- Thrown when or any of is a generic type definition.
- Thrown when or any of is not public.
- Note that to avoid this exception, you can mark offending type internal, and define
- pointing to Castle Dynamic Proxy assembly, in assembly containing that type, if this is appropriate.
-
-
-
-
- Creates a proxy type that proxies calls to members on , implementing , using provided.
-
- The interface type to proxy.
- Additional interface types to proxy.
- Type implementing on which calls to the interface members should be intercepted.
- The proxy generation options.
- The generated proxy type.
-
- Implementers should return a proxy type for the specified interface that 'proceeds' executions to the specified target.
- Additional interfaces should be only 'mark' interfaces, that is, they should work like interface proxy without target. (See method.)
-
- Thrown when or any of is a generic type definition.
- Thrown when or any of is not public.
- Note that to avoid this exception, you can mark offending type internal, and define
- pointing to Castle Dynamic Proxy assembly, in assembly containing that type, if this is appropriate.
-
-
-
-
- Creates a proxy type for given and that delegates all calls to the provided interceptors and allows interceptors to switch the actual target of invocation.
-
- The interface type to proxy.
- Additional interface types to proxy.
- The proxy generation options.
- The generated proxy type.
-
- Implementers should return a proxy type for the specified interface(s) that delegate all executions to the specified interceptors
- and uses an instance of the interface as their targets (i.e. ), rather than a class. All classes should then implement interface,
- to allow interceptors to switch invocation target with instance of another type implementing called interface.
-
- Thrown when or any of is a generic type definition.
- Thrown when or any of is not public.
- Note that to avoid this exception, you can mark offending type internal, and define
- pointing to Castle Dynamic Proxy assembly, in assembly containing that type, if this is appropriate.
-
-
-
-
- Creates a proxy type for given that delegates all calls to the provided interceptors.
-
- The interface type to proxy.
- Additional interface types to proxy.
- The proxy generation options.
- The generated proxy type.
-
- Implementers should return a proxy type for the specified interface and additional interfaces that delegate all executions to the specified interceptors.
-
- Thrown when or any of is a generic type definition.
- Thrown when or any of is not public.
- Note that to avoid this exception, you can mark offending type internal, and define
- pointing to Castle Dynamic Proxy assembly, in assembly containing that type, if this is appropriate.
-
-
-
-
- Gets or sets the that this logs to.
-
-
-
-
- Gets the associated with this builder.
-
- The module scope associated with this builder.
-
-
-
- Initializes a new instance of the class with new .
-
-
-
-
- Initializes a new instance of the class.
-
- The module scope for generated proxy types.
-
-
-
- Registers custom disassembler to handle disassembly of specified type of attributes.
-
- Type of attributes to handle
- Disassembler converting existing instances of Attributes to CustomAttributeBuilders
-
- When disassembling an attribute Dynamic Proxy will first check if an custom disassembler has been registered to handle attributes of that type,
- and if none is found, it'll use the .
-
-
-
-
- Attributes should be replicated if they are non-inheritable,
- but there are some special cases where the attributes means
- something to the CLR, where they should be skipped.
-
-
-
-
- Initializes a new instance of the class.
-
- Target element. This is either target type or target method for invocation types.
- The type of the proxy. This is base type for invocation types.
- The interfaces.
- The options.
-
-
-
- Initializes a new instance of the class.
-
- Type of the target.
- The interfaces.
- The options.
-
-
-
- s
- Provides appropriate Ldc.X opcode for the type of primitive value to be loaded.
-
-
-
-
- Provides appropriate Ldind.X opcode for
- the type of primitive value to be loaded indirectly.
-
-
-
-
- Emits a load indirect opcode of the appropriate type for a value or object reference.
- Pops a pointer off the evaluation stack, dereferences it and loads
- a value of the specified type.
-
-
-
-
-
-
- Emits a load opcode of the appropriate kind for a constant string or
- primitive value.
-
-
-
-
-
-
- Emits a load opcode of the appropriate kind for the constant default value of a
- type, such as 0 for value types and null for reference types.
-
-
-
-
- Emits a store indirectopcode of the appropriate type for a value or object reference.
- Pops a value of the specified type and a pointer off the evaluation stack, and
- stores the value.
-
-
-
-
-
-
- Summary description for PropertiesCollection.
-
-
-
-
- Wraps a reference that is passed
- ByRef and provides indirect load/store support.
-
-
-
-
- Summary description for NewArrayExpression.
-
-
-
-
-
-
-
-
- Provides appropriate Stind.X opcode
- for the type of primitive value to be stored indirectly.
-
-
-
-
- Returns list of all unique interfaces implemented given types, including their base interfaces.
-
-
-
-
-
-
- Initializes a new instance of the class.
-
- The name.
- Type declaring the original event being overriten, or null.
-
- The add method.
- The remove method.
- The attributes.
-
-
-
- Represents the scope of uniquenes of names for types and their members
-
-
-
-
- Gets a unique name based on
-
- Name suggested by the caller
- Unique name based on .
-
- Implementers should provide name as closely resembling as possible.
- Generally if no collision occurs it is suggested to return suggested name, otherwise append sequential suffix.
- Implementers must return deterministic names, that is when is called twice
- with the same suggested name, the same returned name should be provided each time. Non-deterministic return
- values, like appending random suffices will break serialization of proxies.
-
-
-
-
- Returns new, disposable naming scope. It is responsibilty of the caller to make sure that no naming collision
- with enclosing scope, or other subscopes is possible.
-
- New naming scope.
-
-
-
- Returns the methods implemented by a type. Use this instead of Type.GetMethods() to work around a CLR issue
- where duplicate MethodInfos are returned by Type.GetMethods() after a token of a generic type's method was loaded.
-
-
-
-
- Determines whether the specified method is internal.
-
- The method.
-
- true if the specified method is internal; otherwise, false.
-
-
-
-
- Determines whether this assembly has internals visible to dynamic proxy.
-
- The assembly to inspect.
-
-
-
- Checks if the method is public or protected.
-
-
-
-
-
-
- Because we need to cache the types based on the mixed in mixins, we do the following here:
- - Get all the mixin interfaces
- - Sort them by full name
- - Return them by position
-
- The idea is to have reproducible behavior for the case that mixins are registered in different orders.
- This method is here because it is required
-
-
-
-
- Summary description for ModuleScope.
-
-
-
-
- The default file name used when the assembly is saved using .
-
-
-
-
- The default assembly (simple) name used for the assemblies generated by a instance.
-
-
-
-
- Initializes a new instance of the class; assemblies created by this instance will not be saved.
-
-
-
-
- Initializes a new instance of the class, allowing to specify whether the assemblies generated by this instance
- should be saved.
-
- If set to true saves the generated module.
-
-
-
- Initializes a new instance of the class, allowing to specify whether the assemblies generated by this instance
- should be saved.
-
- If set to true saves the generated module.
- If set to true disables ability to generate signed module. This should be used in cases where ran under constrained permissions.
-
-
-
- Initializes a new instance of the class, allowing to specify whether the assemblies generated by this instance
- should be saved and what simple names are to be assigned to them.
-
- If set to true saves the generated module.
- If set to true disables ability to generate signed module. This should be used in cases where ran under constrained permissions.
- The simple name of the strong-named assembly generated by this .
- The path and file name of the manifest module of the strong-named assembly generated by this .
- The simple name of the weak-named assembly generated by this .
- The path and file name of the manifest module of the weak-named assembly generated by this .
-
-
-
- Initializes a new instance of the class, allowing to specify whether the assemblies generated by this instance
- should be saved and what simple names are to be assigned to them.
-
- If set to true saves the generated module.
- If set to true disables ability to generate signed module. This should be used in cases where ran under constrained permissions.
- Naming scope used to provide unique names to generated types and their members (usually via sub-scopes).
- The simple name of the strong-named assembly generated by this .
- The path and file name of the manifest module of the strong-named assembly generated by this .
- The simple name of the weak-named assembly generated by this .
- The path and file name of the manifest module of the weak-named assembly generated by this .
-
-
-
- Returns a type from this scope's type cache, or null if the key cannot be found.
-
- The key to be looked up in the cache.
- The type from this scope's type cache matching the key, or null if the key cannot be found
-
-
-
- Registers a type in this scope's type cache.
-
- The key to be associated with the type.
- The type to be stored in the cache.
-
-
-
- Gets the key pair used to sign the strong-named assembly generated by this .
-
-
-
-
-
- Gets the specified module generated by this scope, creating a new one if none has yet been generated.
-
- If set to true, a strong-named module is returned; otherwise, a weak-named module is returned.
- A strong-named or weak-named module generated by this scope, as specified by the parameter.
-
-
-
- Gets the strong-named module generated by this scope, creating a new one if none has yet been generated.
-
- A strong-named module generated by this scope.
-
-
-
- Gets the weak-named module generated by this scope, creating a new one if none has yet been generated.
-
- A weak-named module generated by this scope.
-
-
-
- Saves the generated assembly with the name and directory information given when this instance was created (or with
- the and current directory if none was given).
-
-
-
- This method stores the generated assembly in the directory passed as part of the module information specified when this instance was
- constructed (if any, else the current directory is used). If both a strong-named and a weak-named assembly
- have been generated, it will throw an exception; in this case, use the overload.
-
-
- If this was created without indicating that the assembly should be saved, this method does nothing.
-
-
- Both a strong-named and a weak-named assembly have been generated.
- The path of the generated assembly file, or null if no file has been generated.
-
-
-
- Saves the specified generated assembly with the name and directory information given when this instance was created
- (or with the and current directory if none was given).
-
- True if the generated assembly with a strong name should be saved (see );
- false if the generated assembly without a strong name should be saved (see .
-
-
- This method stores the specified generated assembly in the directory passed as part of the module information specified when this instance was
- constructed (if any, else the current directory is used).
-
-
- If this was created without indicating that the assembly should be saved, this method does nothing.
-
-
- No assembly has been generated that matches the parameter.
-
- The path of the generated assembly file, or null if no file has been generated.
-
-
-
- Loads the generated types from the given assembly into this 's cache.
-
- The assembly to load types from. This assembly must have been saved via or
- , or it must have the manually applied.
-
- This method can be used to load previously generated and persisted proxy types from disk into this scope's type cache, eg. in order
- to avoid the performance hit associated with proxy generation.
-
-
-
-
- Users of this should use this lock when accessing the cache.
-
-
-
-
- Gets the strong-named module generated by this scope, or if none has yet been generated.
-
- The strong-named module generated by this scope, or if none has yet been generated.
-
-
-
- Gets the file name of the strongly named module generated by this scope.
-
- The file name of the strongly named module generated by this scope.
-
-
-
- Gets the directory where the strongly named module generated by this scope will be saved, or if the current directory
- is used.
-
- The directory where the strongly named module generated by this scope will be saved when is called
- (if this scope was created to save modules).
-
-
-
- Gets the weak-named module generated by this scope, or if none has yet been generated.
-
- The weak-named module generated by this scope, or if none has yet been generated.
-
-
-
- Gets the file name of the weakly named module generated by this scope.
-
- The file name of the weakly named module generated by this scope.
-
-
-
- Gets the directory where the weakly named module generated by this scope will be saved, or if the current directory
- is used.
-
- The directory where the weakly named module generated by this scope will be saved when is called
- (if this scope was created to save modules).
-
-
-
- ProxyBuilder that persists the generated type.
-
-
- The saved assembly contains just the last generated type.
-
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Saves the generated assembly to a physical file. Note that this renders the unusable.
-
- The path of the generated assembly file, or null if no assembly has been generated.
-
- This method does not support saving multiple files. If both a signed and an unsigned module have been generated, use the
- respective methods of the .
-
-
-
-
- Initializes a new instance of the class.
-
- The hook.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Provides proxy objects for classes and interfaces.
-
-
-
-
- Initializes a new instance of the class.
-
- Proxy types builder.
-
-
-
- Initializes a new instance of the class.
-
-
-
-
- Creates proxy object intercepting calls to members of interface on object with given .
-
- Type of the interface implemented by which will be proxied.
- The target object, calls to which will be intercepted.
- The interceptors called during the invocation of proxied methods.
- Object proxying calls to members of on object.
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given array is a null reference (Nothing in Visual Basic).
- Thrown when given is not an interface type.
- Thrown when no default constructor exists on actual type of object.
- Thrown when default constructor of actual type of throws an exception.
-
- This method generates new proxy type for each type of , which affects performance. If you don't want to proxy types differently depending on the type of the target
- use method.
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to members of interface on object with given .
-
- Type of the interface implemented by which will be proxied.
- The target object, calls to which will be intercepted.
- The proxy generation options used to influence generated proxy type and object.
- The interceptors called during the invocation of proxied methods.
-
- Object proxying calls to members of on object.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given array is a null reference (Nothing in Visual Basic).
- Thrown when given is not an interface type.
- Thrown when no default constructor exists on actual type of object.
- Thrown when default constructor of actual type of throws an exception.
-
- This method generates new proxy type for each type of , which affects performance. If you don't want to proxy types differently depending on the type of the target
- use method.
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to members of interface on object with given .
-
- Type of the interface implemented by which will be proxied.
- The target object, calls to which will be intercepted.
- The interceptors called during the invocation of proxied methods.
-
- Object proxying calls to members of type on object.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given array is a null reference (Nothing in Visual Basic).
- Thrown when given is a generic type definition.
- Thrown when given is not an interface type.
- Thrown when given does not implement interface.
- Thrown when no default constructor exists on actual type of object.
- Thrown when default constructor of actual type of throws an exception.
-
- This method generates new proxy type for each type of , which affects performance. If you don't want to proxy types differently depending on the type of the target
- use method.
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to members of interface on object with given .
-
- Type of the interface implemented by which will be proxied.
- The target object, calls to which will be intercepted.
- The proxy generation options used to influence generated proxy type and object.
- The interceptors called during the invocation of proxied methods.
-
- Object proxying calls to members of type on object.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given array is a null reference (Nothing in Visual Basic).
- Thrown when given is a generic type definition.
- Thrown when given is not an interface type.
- Thrown when given does not implement interface.
- Thrown when no default constructor exists on actual type of object.
- Thrown when default constructor of actual type of throws an exception.
-
- This method generates new proxy type for each type of , which affects performance. If you don't want to proxy types differently depending on the type of the target
- use method.
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to members of interface on object with given .
-
- Type of the interface implemented by which will be proxied.
- The target object, calls to which will be intercepted.
- Additional interface types. Calls to their members will be proxied as well.
- The interceptors called during the invocation of proxied methods.
-
- Object proxying calls to members of and types on object.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given array is a null reference (Nothing in Visual Basic).
- Thrown when given or any of is a generic type definition.
- Thrown when given is not an interface type.
- Thrown when given does not implement interface.
- Thrown when no default constructor exists on actual type of object.
- Thrown when default constructor of actual type of throws an exception.
-
- This method generates new proxy type for each type of , which affects performance. If you don't want to proxy types differently depending on the type of the target
- use method.
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to members of interface on object with given .
-
- Type of the interface implemented by which will be proxied.
- The target object, calls to which will be intercepted.
- The proxy generation options used to influence generated proxy type and object.
- Additional interface types. Calls to their members will be proxied as well.
- The interceptors called during the invocation of proxied methods.
-
- Object proxying calls to members of and types on object.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given array is a null reference (Nothing in Visual Basic).
- Thrown when given or any of is a generic type definition.
- Thrown when given is not an interface type.
- Thrown when given does not implement interface.
- Thrown when no default constructor exists on actual type of object.
- Thrown when default constructor of actual type of throws an exception.
-
- This method generates new proxy type for each type of , which affects performance. If you don't want to proxy types differently depending on the type of the target
- use method.
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to members of interface on object with given .
- Interceptors can use interface to provide other target for method invocation than default .
-
- Type of the interface implemented by which will be proxied.
- The target object, calls to which will be intercepted.
- The interceptors called during the invocation of proxied methods.
-
- Object proxying calls to members of type on object or alternative implementation swapped at runtime by an interceptor.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given array is a null reference (Nothing in Visual Basic).
- Thrown when given is a generic type definition.
- Thrown when given is not an interface type.
- Thrown when given does not implement interface.
- Thrown when no default constructor exists on actual type of object.
- Thrown when default constructor of actual type of throws an exception.
-
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to members of interface on object with given .
- Interceptors can use interface to provide other target for method invocation than default .
-
- Type of the interface implemented by which will be proxied.
- The target object, calls to which will be intercepted.
- The interceptors called during the invocation of proxied methods.
-
- Object proxying calls to members of type on object or alternative implementation swapped at runtime by an interceptor.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given array is a null reference (Nothing in Visual Basic).
- Thrown when given is not an interface type.
- Thrown when no default constructor exists on actual type of object.
- Thrown when default constructor of actual type of throws an exception.
-
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to members of interface on object with given .
- Interceptors can use interface to provide other target for method invocation than default .
-
- Type of the interface implemented by which will be proxied.
- The target object, calls to which will be intercepted.
- The proxy generation options used to influence generated proxy type and object.
- The interceptors called during the invocation of proxied methods.
-
- Object proxying calls to members of type on object or alternative implementation swapped at runtime by an interceptor.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given array is a null reference (Nothing in Visual Basic).
- Thrown when given is not an interface type.
- Thrown when no default constructor exists on actual type of object.
- Thrown when default constructor of actual type of throws an exception.
-
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to members of interface on object with given .
- Interceptors can use interface to provide other target for method invocation than default .
-
- Type of the interface implemented by which will be proxied.
- The target object, calls to which will be intercepted.
- Additional interface types. Calls to their members will be proxied as well.
- The interceptors called during the invocation of proxied methods.
-
- Object proxying calls to members of and types on object or alternative implementation swapped at runtime by an interceptor.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given array is a null reference (Nothing in Visual Basic).
- Thrown when given or any of is a generic type definition.
- Thrown when given is not an interface type.
- Thrown when given does not implement interface.
- Thrown when no default constructor exists on actual type of object.
- Thrown when default constructor of actual type of throws an exception.
-
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to members of interface on object with given .
- Interceptors can use interface to provide other target for method invocation than default .
-
- Type of the interface implemented by which will be proxied.
- The target object, calls to which will be intercepted.
- The proxy generation options used to influence generated proxy type and object.
- The interceptors called during the invocation of proxied methods.
-
- Object proxying calls to members of type on object or alternative implementation swapped at runtime by an interceptor.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given array is a null reference (Nothing in Visual Basic).
- Thrown when given is a generic type definition.
- Thrown when given is not an interface type.
- Thrown when given does not implement interface.
- Thrown when no default constructor exists on actual type of object.
- Thrown when default constructor of actual type of throws an exception.
-
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to members of interface on object with given .
- Interceptors can use interface to provide other target for method invocation than default .
-
- Type of the interface implemented by which will be proxied.
- The target object, calls to which will be intercepted.
- The proxy generation options used to influence generated proxy type and object.
- Additional interface types. Calls to their members will be proxied as well.
- The interceptors called during the invocation of proxied methods.
-
- Object proxying calls to members of and types on object or alternative implementation swapped at runtime by an interceptor.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given array is a null reference (Nothing in Visual Basic).
- Thrown when given or any of is a generic type definition.
- Thrown when given is not an interface type.
- Thrown when given does not implement interface.
- Thrown when no default constructor exists on actual type of object.
- Thrown when default constructor of actual type of throws an exception.
-
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to members of interface on target object generated at runtime with given .
-
- Type of the interface which will be proxied.
- The interceptors called during the invocation of proxied methods.
-
- Object proxying calls to members of types on generated target object.
-
- Thrown when given array is a null reference (Nothing in Visual Basic).
- Thrown when given is not an interface type.
-
- Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations.
- They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with.
- As a result of that also at least one implementation must be provided.
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to members of interface on target object generated at runtime with given .
-
- Type of the interface which will be proxied.
- The interceptors called during the invocation of proxied methods.
-
- Object proxying calls to members of types on generated target object.
-
- Thrown when given array is a null reference (Nothing in Visual Basic).
- Thrown when given is not an interface type.
-
- Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations.
- They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with.
- As a result of that also at least one implementation must be provided.
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to members of interface on target object generated at runtime with given .
-
- Type of the interface which will be proxied.
- The proxy generation options used to influence generated proxy type and object.
- The interceptors called during the invocation of proxied methods.
-
- Object proxying calls to members of types on generated target object.
-
- Thrown when given array is a null reference (Nothing in Visual Basic).
- Thrown when given is not an interface type.
-
- Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations.
- They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with.
- As a result of that also at least one implementation must be provided.
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to members of interface on target object generated at runtime with given .
-
- Type of the interface which will be proxied.
- The interceptors called during the invocation of proxied methods.
-
- Object proxying calls to members of type on generated target object.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given array is a null reference (Nothing in Visual Basic).
- Thrown when given is a generic type definition.
- Thrown when given is not an interface type.
-
- Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations.
- They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with.
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to members of interface on target object generated at runtime with given .
-
- Type of the interface which will be proxied.
- The interceptors called during the invocation of proxied methods.
-
- Object proxying calls to members of type on generated target object.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given array is a null reference (Nothing in Visual Basic).
- Thrown when given is a generic type definition.
- Thrown when given is not an interface type.
-
- Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations.
- They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with.
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to members of interface on target object generated at runtime with given .
-
- Type of the interface which will be proxied.
- Additional interface types. Calls to their members will be proxied as well.
- The interceptors called during the invocation of proxied methods.
-
- Object proxying calls to members of and types on generated target object.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given array is a null reference (Nothing in Visual Basic).
- Thrown when given or any of is a generic type definition.
- Thrown when given is not an interface type.
-
- Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations.
- They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with.
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to members of interface on target object generated at runtime with given .
-
- Type of the interface which will be proxied.
- The proxy generation options used to influence generated proxy type and object.
- The interceptors called during the invocation of proxied methods.
-
- Object proxying calls to members of on generated target object.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given array is a null reference (Nothing in Visual Basic).
- Thrown when given is a generic type definition.
- Thrown when given is not an interface type.
-
- They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with.
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to members of interface on target object generated at runtime with given .
-
- Type of the interface which will be proxied.
- The proxy generation options used to influence generated proxy type and object.
- Additional interface types. Calls to their members will be proxied as well.
- The interceptors called during the invocation of proxied methods.
-
- Object proxying calls to members of and types on generated target object.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given array is a null reference (Nothing in Visual Basic).
- Thrown when given or any of is a generic type definition.
- Thrown when given is not an interface type.
-
- Since this method uses an empty-shell implementation of to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations.
- They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with.
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given .
-
- Type of class which will be proxied.
- The target object, calls to which will be intercepted.
- The interceptors called during the invocation of proxied methods.
-
- New object of type proxying calls to virtual members of type.
-
- Thrown when given is not a class type.
- Thrown when no default constructor exists on type .
- Thrown when default constructor of type throws an exception.
-
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given .
-
- Type of class which will be proxied.
- The target object, calls to which will be intercepted.
- The proxy generation options used to influence generated proxy type and object.
- The interceptors called during the invocation of proxied methods.
-
- New object of type proxying calls to virtual members of type.
-
- Thrown when given is not a class type.
- Thrown when no default constructor exists on type .
- Thrown when default constructor of type throws an exception.
-
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given .
-
- Type of class which will be proxied.
- Additional interface types. Calls to their members will be proxied as well.
- The target object, calls to which will be intercepted.
- The interceptors called during the invocation of proxied methods.
-
- New object of type proxying calls to virtual members of and types.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given or any of is a generic type definition.
- Thrown when given is not a class type.
- Thrown when no default constructor exists on type .
- Thrown when default constructor of type throws an exception.
-
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given .
-
- Type of class which will be proxied.
- The target object, calls to which will be intercepted.
- The proxy generation options used to influence generated proxy type and object.
- Arguments of constructor of type which should be used to create a new instance of that type.
- The interceptors called during the invocation of proxied methods.
-
- New object of type proxying calls to virtual members of type.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given is a generic type definition.
- Thrown when given is not a class type.
- Thrown when no constructor exists on type with parameters matching .
- Thrown when constructor of type throws an exception.
-
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given .
-
- Type of class which will be proxied.
- The target object, calls to which will be intercepted.
- Arguments of constructor of type which should be used to create a new instance of that type.
- The interceptors called during the invocation of proxied methods.
-
- New object of type proxying calls to virtual members of type.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given is a generic type definition.
- Thrown when given is not a class type.
- Thrown when no constructor exists on type with parameters matching .
- Thrown when constructor of type throws an exception.
-
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given .
-
- Type of class which will be proxied.
- The target object, calls to which will be intercepted.
- The interceptors called during the invocation of proxied methods.
-
- New object of type proxying calls to virtual members of type.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given is a generic type definition.
- Thrown when given is not a class type.
- Thrown when no parameterless constructor exists on type .
- Thrown when constructor of type throws an exception.
-
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given .
-
- Type of class which will be proxied.
- The target object, calls to which will be intercepted.
- The proxy generation options used to influence generated proxy type and object.
- The interceptors called during the invocation of proxied methods.
-
- New object of type proxying calls to virtual members of type.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given is a generic type definition.
- Thrown when given is not a class type.
- Thrown when no default constructor exists on type .
- Thrown when default constructor of type throws an exception.
-
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given .
-
- Type of class which will be proxied.
- Additional interface types. Calls to their members will be proxied as well.
- The target object, calls to which will be intercepted.
- The proxy generation options used to influence generated proxy type and object.
- The interceptors called during the invocation of proxied methods.
-
- New object of type proxying calls to virtual members of and types.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given or any of is a generic type definition.
- Thrown when given is not a class type.
- Thrown when no default constructor exists on type .
- Thrown when default constructor of type throws an exception.
-
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given .
-
- Type of class which will be proxied.
- Additional interface types. Calls to their members will be proxied as well.
- The target object, calls to which will be intercepted.
- The proxy generation options used to influence generated proxy type and object.
- Arguments of constructor of type which should be used to create a new instance of that type.
- The interceptors called during the invocation of proxied methods.
-
- New object of type proxying calls to virtual members of and types.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given or any of is a generic type definition.
- Thrown when given is not a class type.
- Thrown when no constructor exists on type with parameters matching .
- Thrown when constructor of type throws an exception.
-
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given .
-
- Type of class which will be proxied.
- The interceptors called during the invocation of proxied methods.
-
- New object of type proxying calls to virtual members of type.
-
- Thrown when given is not a class type.
- Thrown when no default constructor exists on type .
- Thrown when default constructor of type throws an exception.
-
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given .
-
- Type of class which will be proxied.
- The proxy generation options used to influence generated proxy type and object.
- The interceptors called during the invocation of proxied methods.
-
- New object of type proxying calls to virtual members of type.
-
- Thrown when given is not a class type.
- Thrown when no default constructor exists on type .
- Thrown when default constructor of type throws an exception.
-
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given .
-
- Type of class which will be proxied.
- Additional interface types. Calls to their members will be proxied as well.
- The interceptors called during the invocation of proxied methods.
-
- New object of type proxying calls to virtual members of and types.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given or any of is a generic type definition.
- Thrown when given is not a class type.
- Thrown when no default constructor exists on type .
- Thrown when default constructor of type throws an exception.
-
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given .
-
- Type of class which will be proxied.
- The proxy generation options used to influence generated proxy type and object.
- Arguments of constructor of type which should be used to create a new instance of that type.
- The interceptors called during the invocation of proxied methods.
-
- New object of type proxying calls to virtual members of type.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given is a generic type definition.
- Thrown when given is not a class type.
- Thrown when no constructor exists on type with parameters matching .
- Thrown when constructor of type throws an exception.
-
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given .
-
- Type of class which will be proxied.
- Arguments of constructor of type which should be used to create a new instance of that type.
- The interceptors called during the invocation of proxied methods.
-
- New object of type proxying calls to virtual members of type.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given is a generic type definition.
- Thrown when given is not a class type.
- Thrown when no constructor exists on type with parameters matching .
- Thrown when constructor of type throws an exception.
-
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given .
-
- Type of class which will be proxied.
- The interceptors called during the invocation of proxied methods.
-
- New object of type proxying calls to virtual members of type.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given is a generic type definition.
- Thrown when given is not a class type.
- Thrown when no parameterless constructor exists on type .
- Thrown when constructor of type throws an exception.
-
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given .
-
- Type of class which will be proxied.
- The proxy generation options used to influence generated proxy type and object.
- The interceptors called during the invocation of proxied methods.
-
- New object of type proxying calls to virtual members of type.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given is a generic type definition.
- Thrown when given is not a class type.
- Thrown when no default constructor exists on type .
- Thrown when default constructor of type throws an exception.
-
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given .
-
- Type of class which will be proxied.
- Additional interface types. Calls to their members will be proxied as well.
- The proxy generation options used to influence generated proxy type and object.
- The interceptors called during the invocation of proxied methods.
-
- New object of type proxying calls to virtual members of and types.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given or any of is a generic type definition.
- Thrown when given is not a class type.
- Thrown when no default constructor exists on type .
- Thrown when default constructor of type throws an exception.
-
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given .
-
- Type of class which will be proxied.
- Additional interface types. Calls to their members will be proxied as well.
- The proxy generation options used to influence generated proxy type and object.
- Arguments of constructor of type which should be used to create a new instance of that type.
- The interceptors called during the invocation of proxied methods.
-
- New object of type proxying calls to virtual members of and types.
-
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given object is a null reference (Nothing in Visual Basic).
- Thrown when given or any of is a generic type definition.
- Thrown when given is not a class type.
- Thrown when no constructor exists on type with parameters matching .
- Thrown when constructor of type throws an exception.
-
- This method uses implementation to generate a proxy type.
- As such caller should expect any type of exception that given implementation may throw.
-
-
-
-
- Creates the proxy type for class proxy with given class, implementing given and using provided .
-
- The base class for proxy type.
- The interfaces that proxy type should implement.
- The options for proxy generation process.
- of proxy.
-
-
-
- Creates the proxy type for interface proxy with target for given interface, implementing given on given and using provided .
-
- The interface proxy type should implement.
- The additional interfaces proxy type should implement.
- Actual type that the proxy type will encompass.
- The options for proxy generation process.
- of proxy.
-
-
-
- Creates the proxy type for interface proxy with target interface for given interface, implementing given on given and using provided .
-
- The interface proxy type should implement.
- The additional interfaces proxy type should implement.
- The options for proxy generation process.
- of proxy.
-
-
-
- Creates the proxy type for interface proxy without target for given interface, implementing given and using provided .
-
- The interface proxy type should implement.
- The additional interfaces proxy type should implement.
- The options for proxy generation process.
- of proxy.
-
-
-
- Gets or sets the that this log to.
-
-
-
-
- Gets the proxy builder instance used to generate proxy types.
-
- The proxy builder.
-
-
-
-
-
-
-
-
-
-
-
-
- For interface proxies, this will point to the
- on the target class
-
-
-
-
- Handles the deserialization of proxies.
-
-
-
-
- Resets the used for deserialization to a new scope.
-
-
- This is useful for test cases.
-
-
-
-
- Resets the used for deserialization to a given .
-
- The scope to be used for deserialization.
-
- By default, the deserialization process uses a different scope than the rest of the application, which can lead to multiple proxies
- being generated for the same type. By explicitly setting the deserialization scope to the application's scope, this can be avoided.
-
-
-
-
- Gets the used for deserialization.
-
- As has no way of automatically determining the scope used by the application (and the application
- might use more than one scope at the same time), uses a dedicated scope instance for deserializing proxy
- types. This instance can be reset and set to a specific value via and .
-
-
-
- Holds objects representing methods of class.
-
-
-
-
- Holds objects representing methods of class.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Provides an extension point that allows proxies to choose specific interceptors on
- a per method basis.
-
-
-
-
- Selects the interceptors that should intercept calls to the given .
-
- The type declaring the method to intercept.
- The method that will be intercepted.
- All interceptors registered with the proxy.
- An array of interceptors to invoke upon calling the .
-
- This method is called only once per proxy instance, upon the first call to the
- . Either an empty array or null are valid return values to indicate
- that no interceptor should intercept calls to the method. Although it is not advised, it is
- legal to return other implementations than these provided in
- .
-
-
-
-
- Creates a new lock.
-
-
-
-
-
- This interface should be implemented by classes
- that are available in a bigger context, exposing
- the container to different areas in the same application.
-
- For example, in Web application, the (global) HttpApplication
- subclasses should implement this interface to expose
- the configured container
-
-
-
-
-
- Exposes means to change target objects of proxies and invocations
-
-
-
-
- Changes the target object () of current .
-
- The new value of target of invocation.
-
- Although the method takes the actual instance must be of type assignable to , otherwise an will be thrown.
- Also while it's technically legal to pass null reference (Nothing in Visual Basic) as , for obvious reasons Dynamic Proxy will not be able to call the intercepted method on such target.
- In this case last interceptor in the pipeline mustn't call or a will be throws.
- Also while it's technically legal to pass proxy itself as , this would create stack overflow.
- In this case last interceptor in the pipeline mustn't call or a will be throws.
-
- Thrown when is not assignable to the proxied type.
-
-
-
- Permanently changes the target object of the proxy. This does not affect target of the current invocation.
-
- The new value of target of the proxy.
-
- Although the method takes the actual instance must be of type assignable to proxy's target type, otherwise an will be thrown.
- Also while it's technically legal to pass null reference (Nothing in Visual Basic) as , for obvious reasons Dynamic Proxy will not be able to call the intercepted method on such target.
- In this case last interceptor in the pipeline mustn't call or a will be throws.
- Also while it's technically legal to pass proxy itself as , this would create stack overflow.
- In this case last interceptor in the pipeline mustn't call or a will be throws.
-
- Thrown when is not assignable to the proxied type.
-
-
-
- New interface that is going to be used by DynamicProxy 2
-
-
-
-
- Get the proxy target (note that null is a valid target!)
-
-
-
-
-
- Gets the interceptors for the proxy
-
-
-
-
-
- Defines that the implementation wants a
- in order to
- access other components. The creator must be aware
- that the component might (or might not) implement
- the interface.
-
-
- Used by Castle Project components to, for example,
- gather logging factories
-
-
-
-
- Increments IServiceProvider with a generic service resolution operation.
-
-
-
-
- Provides a factory that can produce either or
- classes.
-
-
-
-
- Manages the instantiation of s.
-
-
-
-
- Creates a new logger, getting the logger name from the specified type.
-
-
-
-
- Creates a new logger.
-
-
-
-
- Creates a new logger, getting the logger name from the specified type.
-
-
-
-
- Creates a new logger.
-
-
-
-
- Creates a new extended logger, getting the logger name from the specified type.
-
-
-
-
- Creates a new extended logger.
-
-
-
-
- Creates a new extended logger, getting the logger name from the specified type.
-
-
-
-
- Creates a new extended logger.
-
-
-
-
- Creates a new extended logger, getting the logger name from the specified type.
-
-
-
-
- Creates a new extended logger.
-
-
-
-
- Creates a new extended logger, getting the logger name from the specified type.
-
-
-
-
- Creates a new extended logger.
-
-
-
-
- Creates a new logger, getting the logger name from the specified type.
-
-
-
-
- Creates a new logger.
-
-
-
-
- Creates a new logger, getting the logger name from the specified type.
-
-
-
-
- Creates a new logger.
-
-
-
-
- Gets the configuration file.
-
- i.e. log4net.config
-
-
-
-
- Used to create the TraceLogger implementation of ILogger interface. See .
-
-
-
-
- Gets the configuration file.
-
- i.e. log4net.config
-
-
-
-
- Interface for Context Properties implementations
-
-
-
- This interface defines a basic property get set accessor.
-
-
- Based on the ContextPropertiesBase of log4net, by Nicko Cadell.
-
-
-
-
-
- Gets or sets the value of a property
-
-
- The value for the property with the specified key
-
-
-
- Gets or sets the value of a property
-
-
-
-
-
- NullLogFactory used when logging is turned off.
-
-
-
-
- Creates an instance of ILogger with the specified name.
-
- Name.
-
-
-
-
- Creates an instance of ILogger with the specified name and LoggerLevel.
-
- Name.
- Level.
-
-
-
-
- Creates outputing
- to files. The name of the file is derived from the log name
- plus the 'log' extension.
-
-
-
-
- Provides an interface that supports and
- allows the storage and retrieval of Contexts. These are supported in
- both log4net and NLog.
-
-
-
-
- Manages logging.
-
-
- This is a facade for the different logging subsystems.
- It offers a simplified interface that follows IOC patterns
- and a simplified priority/level/severity abstraction.
-
-
-
-
- Create a new child logger.
- The name of the child logger is [current-loggers-name].[passed-in-name]
-
- The Subname of this logger.
- The New ILogger instance.
- If the name has an empty element name.
-
-
-
- Logs a debug message.
-
- The message to log
-
-
-
- Logs a debug message with lazily constructed message. The message will be constructed only if the is true.
-
-
-
-
-
- Logs a debug message.
-
- The exception to log
- The message to log
-
-
-
- Logs a debug message.
-
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs a debug message.
-
- The exception to log
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs a debug message.
-
- The format provider to use
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs a debug message.
-
- The exception to log
- The format provider to use
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs an error message.
-
- The message to log
-
-
-
- Logs an error message with lazily constructed message. The message will be constructed only if the is true.
-
-
-
-
-
- Logs an error message.
-
- The exception to log
- The message to log
-
-
-
- Logs an error message.
-
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs an error message.
-
- The exception to log
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs an error message.
-
- The format provider to use
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs an error message.
-
- The exception to log
- The format provider to use
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs a fatal message.
-
- The message to log
-
-
-
- Logs a fatal message with lazily constructed message. The message will be constructed only if the is true.
-
-
-
-
-
- Logs a fatal message.
-
- The exception to log
- The message to log
-
-
-
- Logs a fatal message.
-
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs a fatal message.
-
- The exception to log
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs a fatal message.
-
- The format provider to use
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs a fatal message.
-
- The exception to log
- The format provider to use
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs an info message.
-
- The message to log
-
-
-
- Logs a info message with lazily constructed message. The message will be constructed only if the is true.
-
-
-
-
-
- Logs an info message.
-
- The exception to log
- The message to log
-
-
-
- Logs an info message.
-
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs an info message.
-
- The exception to log
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs an info message.
-
- The format provider to use
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs an info message.
-
- The exception to log
- The format provider to use
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs a warn message.
-
- The message to log
-
-
-
- Logs a warn message with lazily constructed message. The message will be constructed only if the is true.
-
-
-
-
-
- Logs a warn message.
-
- The exception to log
- The message to log
-
-
-
- Logs a warn message.
-
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs a warn message.
-
- The exception to log
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs a warn message.
-
- The format provider to use
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs a warn message.
-
- The exception to log
- The format provider to use
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Determines if messages of priority "debug" will be logged.
-
- True if "debug" messages will be logged.
-
-
-
- Determines if messages of priority "error" will be logged.
-
- True if "error" messages will be logged.
-
-
-
- Determines if messages of priority "fatal" will be logged.
-
- True if "fatal" messages will be logged.
-
-
-
- Determines if messages of priority "info" will be logged.
-
- True if "info" messages will be logged.
-
-
-
- Determines if messages of priority "warn" will be logged.
-
- True if "warn" messages will be logged.
-
-
-
- Exposes the Global Context of the extended logger.
-
-
-
-
- Exposes the Thread Context of the extended logger.
-
-
-
-
- Exposes the Thread Stack of the extended logger.
-
-
-
-
- The Logger sending everything to the standard output streams.
- This is mainly for the cases when you have a utility that
- does not have a logger to supply.
-
-
-
-
- The Level Filtered Logger class. This is a base clase which
- provides a LogLevel attribute and reroutes all functions into
- one Log method.
-
-
-
-
- Creates a new LevelFilteredLogger.
-
-
-
-
- Keep the instance alive in a remoting scenario
-
-
-
-
-
- Logs a debug message.
-
- The message to log
-
-
-
- Logs a debug message.
-
- The exception to log
- The message to log
-
-
-
- Logs a debug message.
-
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs a debug message.
-
- The exception to log
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs a debug message.
-
- The format provider to use
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs a debug message.
-
- The exception to log
- The format provider to use
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs an info message.
-
- The message to log
-
-
-
- Logs an info message.
-
- The exception to log
- The message to log
-
-
-
- Logs an info message.
-
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs an info message.
-
- The exception to log
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs an info message.
-
- The format provider to use
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs an info message.
-
- The exception to log
- The format provider to use
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs a warn message.
-
- The message to log
-
-
-
- Logs a warn message.
-
- The exception to log
- The message to log
-
-
-
- Logs a warn message.
-
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs a warn message.
-
- The exception to log
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs a warn message.
-
- The format provider to use
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs a warn message.
-
- The exception to log
- The format provider to use
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs an error message.
-
- The message to log
-
-
-
- Logs an error message.
-
- The exception to log
- The message to log
-
-
-
- Logs an error message.
-
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs an error message.
-
- The exception to log
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs an error message.
-
- The format provider to use
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs an error message.
-
- The exception to log
- The format provider to use
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs a fatal message.
-
- The message to log
-
-
-
- Logs a fatal message.
-
- The exception to log
- The message to log
-
-
-
- Logs a fatal message.
-
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs a fatal message.
-
- The exception to log
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs a fatal message.
-
- The format provider to use
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Logs a fatal message.
-
- The exception to log
- The format provider to use
- Format string for the message to log
- Format arguments for the message to log
-
-
-
- Implementors output the log content by implementing this method only.
- Note that exception can be null
-
-
-
-
-
-
-
-
- The LoggerLevel that this logger
- will be using. Defaults to LoggerLevel.Off
-
-
-
-
- The name that this logger will be using.
- Defaults to String.Empty
-
-
-
-
- Determines if messages of priority "debug" will be logged.
-
- true if log level flags include the bit
-
-
-
- Determines if messages of priority "info" will be logged.
-
- true if log level flags include the bit
-
-
-
- Determines if messages of priority "warn" will be logged.
-
- true if log level flags include the bit
-
-
-
- Determines if messages of priority "error" will be logged.
-
- true if log level flags include the bit
-
-
-
- Determines if messages of priority "fatal" will be logged.
-
- true if log level flags include the bit
-
-
-
- Creates a new ConsoleLogger with the Level
- set to LoggerLevel.Debug and the Name
- set to String.Empty.
-
-
-
-
- Creates a new ConsoleLogger with the Name
- set to String.Empty.
-
- The logs Level.
-
-
-
- Creates a new ConsoleLogger with the Level
- set to LoggerLevel.Debug.
-
- The logs Name.
-
-
-
- Creates a new ConsoleLogger.
-
- The logs Name.
- The logs Level.
-
-
-
- A Common method to log.
-
- The level of logging
- The name of the logger
- The Message
- The Exception
-
-
-
- Returns a new ConsoleLogger with the name
- added after this loggers name, with a dot in between.
-
- The added hierarchical name.
- A new ConsoleLogger.
-
-
-
- The Logger using standart Diagnostics namespace.
-
-
-
-
- Creates a logger based on .
-
-
-
-
-
- Creates a logger based on .
-
-
-
-
-
-
- Creates a logger based on .
-
-
-
-
-
-
-
- The Null Logger class. This is useful for implementations where you need
- to provide a logger to a utility class, but do not want any output from it.
- It also helps when you have a utility that does not have a logger to supply.
-
-
-
-
- Returns this NullLogger.
-
- Ignored
- This ILogger instance.
-
-
-
- No-op.
-
- Ignored
-
-
-
- No-op.
-
- Ignored
- Ignored
-
-
-
- No-op.
-
- Ignored
- Ignored
-
-
-
- No-op.
-
- Ignored
- Ignored
- Ignored
-
-
-
- No-op.
-
- Ignored
- Ignored
- Ignored
-
-
-
- No-op.
-
- Ignored
- Ignored
- Ignored
- Ignored
-
-
-
- No-op.
-
- Ignored
-
-
-
- No-op.
-
- Ignored
- Ignored
-
-
-
- No-op.
-
- Ignored
- Ignored
-
-
-
- No-op.
-
- Ignored
- Ignored
- Ignored
-
-
-
- No-op.
-
- Ignored
- Ignored
- Ignored
-
-
-
- No-op.
-
- Ignored
- Ignored
- Ignored
- Ignored
-
-
-
- No-op.
-
- Ignored
-
-
-
- No-op.
-
- Ignored
- Ignored
-
-
-
- No-op.
-
- Ignored
- Ignored
-
-
-
- No-op.
-
- Ignored
- Ignored
- Ignored
-
-
-
- No-op.
-
- Ignored
- Ignored
- Ignored
-
-
-
- No-op.
-
- Ignored
- Ignored
- Ignored
- Ignored
-
-
-
- No-op.
-
- Ignored
-
-
-
- No-op.
-
- Ignored
- Ignored
-
-
-
- No-op.
-
- Ignored
- Ignored
-
-
-
- No-op.
-
- Ignored
- Ignored
- Ignored
-
-
-
- No-op.
-
- Ignored
- Ignored
- Ignored
-
-
-
- No-op.
-
- Ignored
- Ignored
- Ignored
- Ignored
-
-
-
- No-op.
-
- Ignored
-
-
-
- No-op.
-
- Ignored
- Ignored
-
-
-
- No-op.
-
- Ignored
- Ignored
-
-
-
- No-op.
-
- Ignored
- Ignored
- Ignored
-
-
-
- No-op.
-
- Ignored
- Ignored
- Ignored
-
-
-
- No-op.
-
- Ignored
- Ignored
- Ignored
- Ignored
-
-
-
- Returns empty context properties.
-
-
-
-
- Returns empty context properties.
-
-
-
-
- Returns empty context stacks.
-
-
-
-
- No-op.
-
- false
-
-
-
- No-op.
-
- false
-
-
-
- No-op.
-
- false
-
-
-
- No-op.
-
- false
-
-
-
- No-op.
-
- false
-
-
-
- The Stream Logger class. This class can stream log information
- to any stream, it is suitable for storing a log file to disk,
- or to a MemoryStream for testing your components.
-
-
- This logger is not thread safe.
-
-
-
-
- Creates a new StreamLogger with default encoding
- and buffer size. Initial Level is set to Debug.
-
-
- The name of the log.
-
-
- The stream that will be used for logging,
- seeking while the logger is alive
-
-
-
-
- Creates a new StreamLogger with default buffer size.
- Initial Level is set to Debug.
-
-
- The name of the log.
-
-
- The stream that will be used for logging,
- seeking while the logger is alive
-
-
- The encoding that will be used for this stream.
-
-
-
-
-
- Creates a new StreamLogger.
- Initial Level is set to Debug.
-
-
- The name of the log.
-
-
- The stream that will be used for logging,
- seeking while the logger is alive
-
-
- The encoding that will be used for this stream.
-
-
-
- The buffer size that will be used for this stream.
-
-
-
-
-
- Creates a new StreamLogger with
- Debug as default Level.
-
- The name of the log.
- The StreamWriter the log will write to.
-
-
-
- The TraceLogger sends all logging to the System.Diagnostics.TraceSource
- built into the .net framework.
-
-
- Logging can be configured in the system.diagnostics configuration
- section.
-
- If logger doesn't find a source name with a full match it will
- use source names which match the namespace partially. For example you can
- configure from all castle components by adding a source name with the
- name "Castle".
-
- If no portion of the namespace matches the source named "Default" will
- be used.
-
-
-
-
- Build a new trace logger based on the named TraceSource
-
- The name used to locate the best TraceSource. In most cases comes from the using type's fullname.
-
-
-
- Build a new trace logger based on the named TraceSource
-
- The name used to locate the best TraceSource. In most cases comes from the using type's fullname.
- The default logging level at which this source should write messages. In almost all cases this
- default value will be overridden in the config file.
-
-
-
- Create a new child logger.
- The name of the child logger is [current-loggers-name].[passed-in-name]
-
- The Subname of this logger.
- The New ILogger instance.
-
-
-
- This is an abstract implementation
- that deals with methods that can be abstracted away
- from underlying implementations.
-
-
- AbstractConfiguration makes easier to implementers
- to create a new version of
-
-
-
-
- is a interface encapsulating a configuration node
- used to retrieve configuration values.
-
-
-
-
- Gets the value of the node and converts it
- into specified .
-
- The
-
- The Default value returned if the conversion fails.
-
- The Value converted into the specified type.
-
-
-
- Gets the name of the node.
-
-
- The Name of the node.
-
-
-
-
- Gets the value of the node.
-
-
- The Value of the node.
-
-
-
-
- Gets an of
- elements containing all node children.
-
- The Collection of child nodes.
-
-
-
- Gets an of the configuration attributes.
-
-
-
-
- Gets the value of the node and converts it
- into specified .
-
- The
-
- The Default value returned if the conversion fails.
-
- The Value converted into the specified type.
-
-
-
- Gets node attributes.
-
-
- All attributes of the node.
-
-
-
-
- Gets all child nodes.
-
- The of child nodes.
-
-
-
- Gets the name of the .
-
-
- The Name of the .
-
-
-
-
- Gets the value of .
-
-
- The Value of the .
-
-
-
-
- A collection of objects.
-
-
-
-
- Creates a new instance of ConfigurationCollection.
-
-
-
-
- Creates a new instance of ConfigurationCollection.
-
-
-
-
- Summary description for MutableConfiguration.
-
-
-
-
- Initializes a new instance of the class.
-
- The name.
-
-
-
- Gets the value of .
-
-
- The Value of the .
-
-
-
-
- Deserializes the specified node into an abstract representation of configuration.
-
- The node.
-
-
-
-
- If a config value is an empty string we return null, this is to keep
- backward compatibility with old code
-
-
-
-
- General purpose class to represent a standard pair of values.
-
- Type of the first value
- Type of the second value
-
-
-
- Constructs a pair with its values
-
-
-
-
-
-
- List of utility methods related to dynamic proxy operations
-
-
-
-
- Determines whether the specified type is a proxy generated by
- DynamicProxy (1 or 2).
-
- The type.
-
- true if it is a proxy; otherwise, false.
-
-
-
-
- Readonly implementation of which uses an anonymous object as its source. Uses names of properties as keys, and property values as... well - values. Keys are not case sensitive.
-
-
-
-
- Initializes a new instance of the class.
-
- The target.
-
-
-
- Adds an element with the provided key and value to the object.
-
- The to use as the key of the element to add.
- The to use as the value of the element to add.
-
- is null.
- An element with the same key already exists in the object.
- The is read-only.-or- The has a fixed size.
-
-
-
- Removes all elements from the object.
-
- The object is read-only.
-
-
-
- Determines whether the object contains an element with the specified key.
-
- The key to locate in the object.
-
- true if the contains an element with the key; otherwise, false.
-
-
- is null.
-
-
-
- Removes the element with the specified key from the object.
-
- The key of the element to remove.
-
- is null.
- The object is read-only.-or- The has a fixed size.
-
-
-
- Returns an enumerator that iterates through a collection.
-
-
- An object that can be used to iterate through the collection.
-
-
-
-
- Copies the elements of the to an , starting at a particular index.
-
- The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing.
- The zero-based index in at which copying begins.
-
- is null.
-
- is less than zero.
-
- is multidimensional.-or- is equal to or greater than the length of .-or- The number of elements in the source is greater than the available space from to the end of the destination .
- The type of the source cannot be cast automatically to the type of the destination .
-
-
-
- Returns an object for the object.
-
-
- An object for the object.
-
-
-
-
- Reads values of properties from and inserts them into using property names as keys.
-
-
-
-
-
-
- Gets the number of elements contained in the .
-
-
- The number of elements contained in the .
-
-
-
- Gets a value indicating whether access to the is synchronized (thread safe).
-
-
- true if access to the is synchronized (thread safe); otherwise, false.
-
-
-
- Gets an object that can be used to synchronize access to the .
-
-
- An object that can be used to synchronize access to the .
-
-
-
- Gets a value indicating whether the object is read-only.
-
-
- true if the object is read-only; otherwise, false.
-
-
-
- Gets or sets the with the specified key.
-
-
-
-
-
- Gets an object containing the keys of the object.
-
-
- An object containing the keys of the object.
-
-
-
- Gets an object containing the values in the object.
-
-
- An object containing the values in the object.
-
-
-
- Gets a value indicating whether the object has a fixed size.
-
-
- true if the object has a fixed size; otherwise, false.
-
-
-
- Represents a 'streamable' resource. Can
- be a file, a resource in an assembly.
-
-
-
-
- Returns a reader for the stream
-
-
- It's up to the caller to dispose the reader.
-
-
-
-
-
- Returns a reader for the stream
-
-
- It's up to the caller to dispose the reader.
-
-
-
-
-
-
- Returns an instance of
- created according to the relativePath
- using itself as the root.
-
-
-
-
-
-
-
-
-
- Only valid for resources that
- can be obtained through relative paths
-
-
-
-
-
-
-
-
-
- This returns a new stream instance each time it is called.
- It is the responsibility of the caller to dispose of this stream
-
-
-
-
- Depicts the contract for resource factories.
-
-
-
-
- Used to check whether the resource factory
- is able to deal with the given resource
- identifier.
-
-
- Implementors should return true
- only if the given identifier is supported
- by the resource factory
-
-
-
-
-
-
- Creates an instance
- for the given resource identifier
-
-
-
-
-
-
- Creates an instance
- for the given resource identifier
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Adapts a static string content as an
-
-
-
-
- Enable access to files on network shares
-
-
-
-
- Email sender abstraction.
-
-
-
-
- Sends a mail message.
-
- From field
- To field
- E-mail's subject
- message's body
-
-
-
- Sends a message.
-
- Message instance
-
-
-
- Sends multiple messages.
-
- List of messages
-
-
-
- Default implementation.
-
-
-
-
- Initializes a new instance of the class based on the configuration provided in the application configuration file.
-
-
- This constructor is based on the default configuration in the application configuration file.
-
-
-
-
- This service implementation
- requires a host name in order to work
-
- The smtp server name
-
-
-
- Sends a message.
-
- If any of the parameters is null
- From field
- To field
- e-mail's subject
- message's body
-
-
-
- Sends a message.
-
- If the message is null
- Message instance
-
-
-
- Configures the sender
- with port information and eventual credential
- informed
-
- Message instance
-
-
-
- Gets or sets the port used to
- access the SMTP server
-
-
-
-
- Gets the hostname.
-
- The hostname.
-
-
-
- Gets or sets a value which is used to
- configure if emails are going to be sent asynchronously or not.
-
-
-
-
- Gets or sets a value that specifies
- the amount of time after which a synchronous Send call times out.
-
-
-
-
- Gets or sets a value indicating whether the email should be sent using
- a secure communication channel.
-
- true if should use SSL; otherwise, false.
-
-
-
- Gets or sets the domain.
-
- The domain.
-
-
-
- Gets or sets the name of the user.
-
- The name of the user.
-
-
-
- Gets or sets the password.
-
- The password.
-
-
-
- Gets a value indicating whether credentials were informed.
-
-
- if this instance has credentials; otherwise, .
-
-
-
-
diff --git a/Dependencies/Moq/Moq.dll b/Dependencies/Moq/Moq.dll
deleted file mode 100644
index f8c381f..0000000
Binary files a/Dependencies/Moq/Moq.dll and /dev/null differ
diff --git a/Dependencies/NUnit/nunit.core.dll b/Dependencies/NUnit/nunit.core.dll
deleted file mode 100644
index c51d8ff..0000000
Binary files a/Dependencies/NUnit/nunit.core.dll and /dev/null differ
diff --git a/Dependencies/NUnit/nunit.core.interfaces.dll b/Dependencies/NUnit/nunit.core.interfaces.dll
deleted file mode 100644
index 607ddee..0000000
Binary files a/Dependencies/NUnit/nunit.core.interfaces.dll and /dev/null differ
diff --git a/Dependencies/NUnit/nunit.fixtures.dll b/Dependencies/NUnit/nunit.fixtures.dll
deleted file mode 100644
index 47c746e..0000000
Binary files a/Dependencies/NUnit/nunit.fixtures.dll and /dev/null differ
diff --git a/Dependencies/NUnit/nunit.framework.dll b/Dependencies/NUnit/nunit.framework.dll
deleted file mode 100644
index 07e4c6e..0000000
Binary files a/Dependencies/NUnit/nunit.framework.dll and /dev/null differ
diff --git a/Dependencies/NUnit/nunit.util.dll b/Dependencies/NUnit/nunit.util.dll
deleted file mode 100644
index e9c515f..0000000
Binary files a/Dependencies/NUnit/nunit.util.dll and /dev/null differ
diff --git a/Dependencies/Should/Should.dll b/Dependencies/Should/Should.dll
deleted file mode 100644
index 2d9589e..0000000
Binary files a/Dependencies/Should/Should.dll and /dev/null differ
diff --git a/README.md b/README.md
index 05f35bf..262c26f 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,10 @@
##Restfulie.Net
+[![Build status](https://ci.appveyor.com/api/projects/status/jiex81pmjui9o5m5?svg=true)](https://ci.appveyor.com/project/AlbertoMonteiro/restfulie-net)
+[![Nuget count](http://img.shields.io/nuget/v/restfulie.net.mvc5.svg)](http://www.nuget.org/packages/restfulie.net.mvc5/)
+[![Coverage Status](https://coveralls.io/repos/github/AlbertoMonteiro/restfulie.net/badge.svg?branch=master)](https://coveralls.io/github/AlbertoMonteiro/restfulie.net?branch=master)
+
+
Restfulie.Net extends ASP.NET MVC providing Content Negotiation, HTTP Status Code's ActionResults (Created, OK, etc) and Hypermedia Link Relations.
For more information check Restfulie [website](http://restfulie.caelum.com.br/) and [Wiki docs](https://github.com/mauricioaniche/restfulie.net/wiki).
@@ -23,4 +28,4 @@ For more information check Restfulie [website](http://restfulie.caelum.com.br/)
##Thank You
- [JetBrains](http://www.jetbrains.com/), [CodeBetter](http://codebetter.com/) and [Devlicio.us](http://devlicio.us/blogs/) for providing our [Teamcity CI Server](http://teamcity.codebetter.com)
\ No newline at end of file
+ [JetBrains](http://www.jetbrains.com/), [CodeBetter](http://codebetter.com/) and [Devlicio.us](http://devlicio.us/blogs/) for providing our [Teamcity CI Server](http://teamcity.codebetter.com)
diff --git a/Restfulie.Server.Tests/Restfulie.Server.Tests.csproj.user b/Restfulie.Server.Tests/Restfulie.Server.Tests.csproj.user
deleted file mode 100644
index daa64de..0000000
--- a/Restfulie.Server.Tests/Restfulie.Server.Tests.csproj.user
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
- ProjectFiles
-
-
-
-
-
-
- en-US
- false
-
-
\ No newline at end of file
diff --git a/Restfulie.Server.Tests/packages.config b/Restfulie.Server.Tests/packages.config
deleted file mode 100644
index cbb8789..0000000
--- a/Restfulie.Server.Tests/packages.config
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Restfulie.Server/packages.config b/Restfulie.Server/packages.config
deleted file mode 100644
index 3c9bae3..0000000
--- a/Restfulie.Server/packages.config
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Restfulie.sln b/Restfulie.sln
index e687c0d..db8f25e 100644
--- a/Restfulie.sln
+++ b/Restfulie.sln
@@ -1,11 +1,11 @@
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Web", "Web\Web.csproj", "{5CDAB2A7-3BDF-4AB3-BCBB-CA0D3D84A381}"
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 14
+VisualStudioVersion = 14.0.25123.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Restfulie.Server", "src\Restfulie.Server\Restfulie.Server.csproj", "{18C82B7B-05CB-4AC4-967A-836FBFB1CE1C}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Restfulie.Server", "Restfulie.Server\Restfulie.Server.csproj", "{18C82B7B-05CB-4AC4-967A-836FBFB1CE1C}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Restfulie.Server.Tests", "Restfulie.Server.Tests\Restfulie.Server.Tests.csproj", "{6DF340D7-843F-4B01-BFB1-F8A5032D57C4}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Restfulie.Server.Tests", "src\Restfulie.Server.Tests\Restfulie.Server.Tests.csproj", "{6DF340D7-843F-4B01-BFB1-F8A5032D57C4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -15,14 +15,6 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {5CDAB2A7-3BDF-4AB3-BCBB-CA0D3D84A381}.AutomatedDebug|Any CPU.ActiveCfg = AutomatedDebug|Any CPU
- {5CDAB2A7-3BDF-4AB3-BCBB-CA0D3D84A381}.AutomatedDebug|Any CPU.Build.0 = AutomatedDebug|Any CPU
- {5CDAB2A7-3BDF-4AB3-BCBB-CA0D3D84A381}.AutomatedRelease|Any CPU.ActiveCfg = AutomatedRelease|Any CPU
- {5CDAB2A7-3BDF-4AB3-BCBB-CA0D3D84A381}.AutomatedRelease|Any CPU.Build.0 = AutomatedRelease|Any CPU
- {5CDAB2A7-3BDF-4AB3-BCBB-CA0D3D84A381}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {5CDAB2A7-3BDF-4AB3-BCBB-CA0D3D84A381}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {5CDAB2A7-3BDF-4AB3-BCBB-CA0D3D84A381}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {5CDAB2A7-3BDF-4AB3-BCBB-CA0D3D84A381}.Release|Any CPU.Build.0 = Release|Any CPU
{18C82B7B-05CB-4AC4-967A-836FBFB1CE1C}.AutomatedDebug|Any CPU.ActiveCfg = Debug|Any CPU
{18C82B7B-05CB-4AC4-967A-836FBFB1CE1C}.AutomatedDebug|Any CPU.Build.0 = Debug|Any CPU
{18C82B7B-05CB-4AC4-967A-836FBFB1CE1C}.AutomatedRelease|Any CPU.ActiveCfg = Release|Any CPU
diff --git a/Tools/nunit/agent.conf b/Tools/nunit/agent.conf
deleted file mode 100644
index b4cf550..0000000
--- a/Tools/nunit/agent.conf
+++ /dev/null
@@ -1,4 +0,0 @@
-
- 8080
- .
-
\ No newline at end of file
diff --git a/Tools/nunit/agent.log.conf b/Tools/nunit/agent.log.conf
deleted file mode 100644
index 6a9ced8..0000000
--- a/Tools/nunit/agent.log.conf
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Tools/nunit/launcher.log.conf b/Tools/nunit/launcher.log.conf
deleted file mode 100644
index 6a9ced8..0000000
--- a/Tools/nunit/launcher.log.conf
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Tools/nunit/lib/Images/Tree/Circles/Failure.jpg b/Tools/nunit/lib/Images/Tree/Circles/Failure.jpg
deleted file mode 100644
index c245548..0000000
Binary files a/Tools/nunit/lib/Images/Tree/Circles/Failure.jpg and /dev/null differ
diff --git a/Tools/nunit/lib/Images/Tree/Circles/Ignored.jpg b/Tools/nunit/lib/Images/Tree/Circles/Ignored.jpg
deleted file mode 100644
index 0549b70..0000000
Binary files a/Tools/nunit/lib/Images/Tree/Circles/Ignored.jpg and /dev/null differ
diff --git a/Tools/nunit/lib/Images/Tree/Circles/Inconclusive.jpg b/Tools/nunit/lib/Images/Tree/Circles/Inconclusive.jpg
deleted file mode 100644
index 8d36153..0000000
Binary files a/Tools/nunit/lib/Images/Tree/Circles/Inconclusive.jpg and /dev/null differ
diff --git a/Tools/nunit/lib/Images/Tree/Circles/Skipped.jpg b/Tools/nunit/lib/Images/Tree/Circles/Skipped.jpg
deleted file mode 100644
index 3d84255..0000000
Binary files a/Tools/nunit/lib/Images/Tree/Circles/Skipped.jpg and /dev/null differ
diff --git a/Tools/nunit/lib/Images/Tree/Circles/Success.jpg b/Tools/nunit/lib/Images/Tree/Circles/Success.jpg
deleted file mode 100644
index 15ec1b7..0000000
Binary files a/Tools/nunit/lib/Images/Tree/Circles/Success.jpg and /dev/null differ
diff --git a/Tools/nunit/lib/Images/Tree/Classic/Failure.jpg b/Tools/nunit/lib/Images/Tree/Classic/Failure.jpg
deleted file mode 100644
index 658905f..0000000
Binary files a/Tools/nunit/lib/Images/Tree/Classic/Failure.jpg and /dev/null differ
diff --git a/Tools/nunit/lib/Images/Tree/Classic/Ignored.jpg b/Tools/nunit/lib/Images/Tree/Classic/Ignored.jpg
deleted file mode 100644
index 95b7fdb..0000000
Binary files a/Tools/nunit/lib/Images/Tree/Classic/Ignored.jpg and /dev/null differ
diff --git a/Tools/nunit/lib/Images/Tree/Classic/Inconclusive.jpg b/Tools/nunit/lib/Images/Tree/Classic/Inconclusive.jpg
deleted file mode 100644
index 32a0ff7..0000000
Binary files a/Tools/nunit/lib/Images/Tree/Classic/Inconclusive.jpg and /dev/null differ
diff --git a/Tools/nunit/lib/Images/Tree/Classic/Skipped.jpg b/Tools/nunit/lib/Images/Tree/Classic/Skipped.jpg
deleted file mode 100644
index 3d84255..0000000
Binary files a/Tools/nunit/lib/Images/Tree/Classic/Skipped.jpg and /dev/null differ
diff --git a/Tools/nunit/lib/Images/Tree/Classic/Success.jpg b/Tools/nunit/lib/Images/Tree/Classic/Success.jpg
deleted file mode 100644
index 3d8e760..0000000
Binary files a/Tools/nunit/lib/Images/Tree/Classic/Success.jpg and /dev/null differ
diff --git a/Tools/nunit/lib/Images/Tree/Default/Failure.png b/Tools/nunit/lib/Images/Tree/Default/Failure.png
deleted file mode 100644
index 2e400b2..0000000
Binary files a/Tools/nunit/lib/Images/Tree/Default/Failure.png and /dev/null differ
diff --git a/Tools/nunit/lib/Images/Tree/Default/Ignored.png b/Tools/nunit/lib/Images/Tree/Default/Ignored.png
deleted file mode 100644
index 05715cb..0000000
Binary files a/Tools/nunit/lib/Images/Tree/Default/Ignored.png and /dev/null differ
diff --git a/Tools/nunit/lib/Images/Tree/Default/Inconclusive.png b/Tools/nunit/lib/Images/Tree/Default/Inconclusive.png
deleted file mode 100644
index 4807b7c..0000000
Binary files a/Tools/nunit/lib/Images/Tree/Default/Inconclusive.png and /dev/null differ
diff --git a/Tools/nunit/lib/Images/Tree/Default/Skipped.png b/Tools/nunit/lib/Images/Tree/Default/Skipped.png
deleted file mode 100644
index 7c9fc64..0000000
Binary files a/Tools/nunit/lib/Images/Tree/Default/Skipped.png and /dev/null differ
diff --git a/Tools/nunit/lib/Images/Tree/Default/Success.png b/Tools/nunit/lib/Images/Tree/Default/Success.png
deleted file mode 100644
index 2a30150..0000000
Binary files a/Tools/nunit/lib/Images/Tree/Default/Success.png and /dev/null differ
diff --git a/Tools/nunit/lib/Images/Tree/Visual Studio/Failure.png b/Tools/nunit/lib/Images/Tree/Visual Studio/Failure.png
deleted file mode 100644
index ba03e84..0000000
Binary files a/Tools/nunit/lib/Images/Tree/Visual Studio/Failure.png and /dev/null differ
diff --git a/Tools/nunit/lib/Images/Tree/Visual Studio/Ignored.png b/Tools/nunit/lib/Images/Tree/Visual Studio/Ignored.png
deleted file mode 100644
index 9271d6e..0000000
Binary files a/Tools/nunit/lib/Images/Tree/Visual Studio/Ignored.png and /dev/null differ
diff --git a/Tools/nunit/lib/Images/Tree/Visual Studio/Inconclusive.png b/Tools/nunit/lib/Images/Tree/Visual Studio/Inconclusive.png
deleted file mode 100644
index 76219b5..0000000
Binary files a/Tools/nunit/lib/Images/Tree/Visual Studio/Inconclusive.png and /dev/null differ
diff --git a/Tools/nunit/lib/Images/Tree/Visual Studio/SeriousWarning.png b/Tools/nunit/lib/Images/Tree/Visual Studio/SeriousWarning.png
deleted file mode 100644
index 6a578cc..0000000
Binary files a/Tools/nunit/lib/Images/Tree/Visual Studio/SeriousWarning.png and /dev/null differ
diff --git a/Tools/nunit/lib/Images/Tree/Visual Studio/Skipped.png b/Tools/nunit/lib/Images/Tree/Visual Studio/Skipped.png
deleted file mode 100644
index 7c9fc64..0000000
Binary files a/Tools/nunit/lib/Images/Tree/Visual Studio/Skipped.png and /dev/null differ
diff --git a/Tools/nunit/lib/Images/Tree/Visual Studio/Success.png b/Tools/nunit/lib/Images/Tree/Visual Studio/Success.png
deleted file mode 100644
index 346fe8f..0000000
Binary files a/Tools/nunit/lib/Images/Tree/Visual Studio/Success.png and /dev/null differ
diff --git a/Tools/nunit/lib/log4net.dll b/Tools/nunit/lib/log4net.dll
deleted file mode 100644
index 20a2e1c..0000000
Binary files a/Tools/nunit/lib/log4net.dll and /dev/null differ
diff --git a/Tools/nunit/lib/nunit-console-runner.dll b/Tools/nunit/lib/nunit-console-runner.dll
deleted file mode 100644
index b0e611a..0000000
Binary files a/Tools/nunit/lib/nunit-console-runner.dll and /dev/null differ
diff --git a/Tools/nunit/lib/nunit-gui-runner.dll b/Tools/nunit/lib/nunit-gui-runner.dll
deleted file mode 100644
index ebff05e..0000000
Binary files a/Tools/nunit/lib/nunit-gui-runner.dll and /dev/null differ
diff --git a/Tools/nunit/lib/nunit.core.dll b/Tools/nunit/lib/nunit.core.dll
deleted file mode 100644
index 5f748be..0000000
Binary files a/Tools/nunit/lib/nunit.core.dll and /dev/null differ
diff --git a/Tools/nunit/lib/nunit.core.interfaces.dll b/Tools/nunit/lib/nunit.core.interfaces.dll
deleted file mode 100644
index 72b9486..0000000
Binary files a/Tools/nunit/lib/nunit.core.interfaces.dll and /dev/null differ
diff --git a/Tools/nunit/lib/nunit.uiexception.dll b/Tools/nunit/lib/nunit.uiexception.dll
deleted file mode 100644
index 9129c03..0000000
Binary files a/Tools/nunit/lib/nunit.uiexception.dll and /dev/null differ
diff --git a/Tools/nunit/lib/nunit.uikit.dll b/Tools/nunit/lib/nunit.uikit.dll
deleted file mode 100644
index 76c1af4..0000000
Binary files a/Tools/nunit/lib/nunit.uikit.dll and /dev/null differ
diff --git a/Tools/nunit/lib/nunit.util.dll b/Tools/nunit/lib/nunit.util.dll
deleted file mode 100644
index 28d603c..0000000
Binary files a/Tools/nunit/lib/nunit.util.dll and /dev/null differ
diff --git a/Tools/nunit/nunit-agent-x86.exe b/Tools/nunit/nunit-agent-x86.exe
deleted file mode 100644
index aa2b8e9..0000000
Binary files a/Tools/nunit/nunit-agent-x86.exe and /dev/null differ
diff --git a/Tools/nunit/nunit-agent-x86.exe.config b/Tools/nunit/nunit-agent-x86.exe.config
deleted file mode 100644
index 43adb3b..0000000
--- a/Tools/nunit/nunit-agent-x86.exe.config
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Tools/nunit/nunit-agent.exe b/Tools/nunit/nunit-agent.exe
deleted file mode 100644
index 3068f41..0000000
Binary files a/Tools/nunit/nunit-agent.exe and /dev/null differ
diff --git a/Tools/nunit/nunit-agent.exe.config b/Tools/nunit/nunit-agent.exe.config
deleted file mode 100644
index 43adb3b..0000000
--- a/Tools/nunit/nunit-agent.exe.config
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Tools/nunit/nunit-console-x86.exe b/Tools/nunit/nunit-console-x86.exe
deleted file mode 100644
index 1a641e9..0000000
Binary files a/Tools/nunit/nunit-console-x86.exe and /dev/null differ
diff --git a/Tools/nunit/nunit-console-x86.exe.config b/Tools/nunit/nunit-console-x86.exe.config
deleted file mode 100644
index 3a2afb3..0000000
--- a/Tools/nunit/nunit-console-x86.exe.config
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Tools/nunit/nunit-console.exe b/Tools/nunit/nunit-console.exe
deleted file mode 100644
index 0735eef..0000000
Binary files a/Tools/nunit/nunit-console.exe and /dev/null differ
diff --git a/Tools/nunit/nunit-console.exe.config b/Tools/nunit/nunit-console.exe.config
deleted file mode 100644
index 3a2afb3..0000000
--- a/Tools/nunit/nunit-console.exe.config
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Tools/nunit/nunit-editor.exe b/Tools/nunit/nunit-editor.exe
deleted file mode 100644
index 7e0c55f..0000000
Binary files a/Tools/nunit/nunit-editor.exe and /dev/null differ
diff --git a/Tools/nunit/nunit-x86.exe b/Tools/nunit/nunit-x86.exe
deleted file mode 100644
index d90b9f5..0000000
Binary files a/Tools/nunit/nunit-x86.exe and /dev/null differ
diff --git a/Tools/nunit/nunit-x86.exe.config b/Tools/nunit/nunit-x86.exe.config
deleted file mode 100644
index 7bd69c5..0000000
--- a/Tools/nunit/nunit-x86.exe.config
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Tools/nunit/nunit.exe b/Tools/nunit/nunit.exe
deleted file mode 100644
index 110b626..0000000
Binary files a/Tools/nunit/nunit.exe and /dev/null differ
diff --git a/Tools/nunit/nunit.exe.config b/Tools/nunit/nunit.exe.config
deleted file mode 100644
index 7bd69c5..0000000
--- a/Tools/nunit/nunit.exe.config
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Tools/nunit/nunit.framework.dll b/Tools/nunit/nunit.framework.dll
deleted file mode 100644
index eaea9ee..0000000
Binary files a/Tools/nunit/nunit.framework.dll and /dev/null differ
diff --git a/Tools/nunit/pnunit-agent.exe b/Tools/nunit/pnunit-agent.exe
deleted file mode 100644
index 10bc00c..0000000
Binary files a/Tools/nunit/pnunit-agent.exe and /dev/null differ
diff --git a/Tools/nunit/pnunit-agent.exe.config b/Tools/nunit/pnunit-agent.exe.config
deleted file mode 100644
index 2da8776..0000000
--- a/Tools/nunit/pnunit-agent.exe.config
+++ /dev/null
@@ -1,77 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Tools/nunit/pnunit-launcher.exe b/Tools/nunit/pnunit-launcher.exe
deleted file mode 100644
index 3f09f05..0000000
Binary files a/Tools/nunit/pnunit-launcher.exe and /dev/null differ
diff --git a/Tools/nunit/pnunit-launcher.exe.config b/Tools/nunit/pnunit-launcher.exe.config
deleted file mode 100644
index 2da8776..0000000
--- a/Tools/nunit/pnunit-launcher.exe.config
+++ /dev/null
@@ -1,77 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Tools/nunit/pnunit.framework.dll b/Tools/nunit/pnunit.framework.dll
deleted file mode 100644
index 44bf6ad..0000000
Binary files a/Tools/nunit/pnunit.framework.dll and /dev/null differ
diff --git a/Tools/nunit/pnunit.tests.dll b/Tools/nunit/pnunit.tests.dll
deleted file mode 100644
index 9e4f4fd..0000000
Binary files a/Tools/nunit/pnunit.tests.dll and /dev/null differ
diff --git a/Tools/nunit/runpnunit.bat b/Tools/nunit/runpnunit.bat
deleted file mode 100644
index f41cb5a..0000000
--- a/Tools/nunit/runpnunit.bat
+++ /dev/null
@@ -1,3 +0,0 @@
-start pnunit-agent 8080 .
-start pnunit-agent 8081 .
-pnunit-launcher test.conf
diff --git a/Tools/nunit/test.conf b/Tools/nunit/test.conf
deleted file mode 100644
index 63cc7bd..0000000
--- a/Tools/nunit/test.conf
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- Testing
-
-
- Testing
- pnunit.tests.dll
- TestLibraries.Testing.EqualTo19
- $agent_host:8080
-
-
-
-
-
-
- Parallel_Tests
-
-
- ParallelTest_A_Test
- pnunit.tests.dll
- TestLibraries.ParallelExample.ParallelTest_A
- $agent_host:8080
-
-
- 2
-
-
-
- ParallelTest_B_Test
- pnunit.tests.dll
- TestLibraries.ParallelExample.ParallelTest_B
- $agent_host:8080
-
- 1
-
-
-
-
-
-
-
-
- Parallel_Barriers
-
-
- Parallel_Barriers_TestA
- pnunit.tests.dll
- TestLibraries.ParallelExampleWithBarriers.ParallelTestWithBarriersA
- $agent_host:8080
-
-
-
- START_BARRIER
- WAIT_BARRIER
-
-
-
- Parallel_Barriers_TestB
- pnunit.tests.dll
- TestLibraries.ParallelExampleWithBarriers.ParallelTestWithBarriersB
- $agent_host:8081
-
-
-
- START_BARRIER
- WAIT_BARRIER
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Tools/psake/README.markdown b/Tools/psake/README.markdown
deleted file mode 100644
index ae1118a..0000000
--- a/Tools/psake/README.markdown
+++ /dev/null
@@ -1,54 +0,0 @@
-Welcome to the psake project.
-=============================
-
-psake is a build automation tool written in PowerShell. It avoids the angle-bracket tax associated with executable XML by leveraging the PowerShell syntax in your build scripts.
-psake has a syntax inspired by rake (aka make in Ruby) and bake (aka make in Boo), but is easier to script because it leverages your existent command-line knowledge.
-
-psake is pronounced sake – as in Japanese rice wine. It does NOT rhyme with make, bake, or rake.
-
-## How to get started:
-
-**Step 1:** Download and extract the project
-
-You will need to "unblock" the zip file before extracting - PowerShell by default does not run files downloaded from the internet.
-Just right-click the zip and click on "properties" and click on the "unblock" button.
-
-**Step 2:** CD into the directory where you extracted the project (where the psake.psm1 file is)
-
-> Import-Module .\psake.psm1
-
-If you encounter the following error "Import-Module : ...psake.psm1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details.
-
-1. Run PowerShell as administrator
-2. Set-ExecutionPolicy RemoteSigned
-
-> Get-Help Invoke-psake -Full
-> - this will show you help and examples of how to use psake
-
-**Step 3:** Run some examples
-
-> CD .\examples
->
-> Invoke-psake
-> - This will execute the "default" task in the "default.ps1"
->
-> Invoke-psake .\default.ps1 Clean
-> - will execute the single task in the default.ps1 script
-
-## How To Contribute, Collaborate, Communicate
-
-If you'd like to get involved with psake, we have discussion groups over at google: **[psake-dev](http://groups.google.com/group/psake-dev)** **[psake-users](http://groups.google.com/group/psake-users)**
-
-Anyone can fork the main repository and submit patches, as well. And lastly, the [wiki](http://wiki.github.com/psake/psake/) and [issues list](http://github.com/psake/psake/issues) are also open for additions, edits, and discussion.
-
-Also check out the **[psake-contrib](http://github.com/psake/psake-contrib)** project for scripts,modules and functions to help you with a build
-
-## Contributors
-
-Many thanks for contributions to psake are due (in alphabetical order):
-
-* candland
-* Staxmanade
-* lanwin
-* smbecker
-* stej
\ No newline at end of file
diff --git a/Tools/psake/chocolateyInstall.ps1 b/Tools/psake/chocolateyInstall.ps1
deleted file mode 100644
index 88c22ad..0000000
--- a/Tools/psake/chocolateyInstall.ps1
+++ /dev/null
@@ -1,19 +0,0 @@
-try {
- $nugetPath = $env:ChocolateyInstall
- $nugetExePath = Join-Path $nuGetPath 'bin'
- $packageBatchFileName = Join-Path $nugetExePath "psake.bat"
-
- $psakeDir = (Split-Path -parent $MyInvocation.MyCommand.Definition)
- #$path = ($psakeDir | Split-Path | Join-Path -ChildPath 'psake.cmd')
- $path = Join-Path $psakeDir 'psake.cmd'
- Write-Host "Adding $packageBatchFileName and pointing to $path"
- "@echo off
- ""$path"" %*" | Out-File $packageBatchFileName -encoding ASCII
-
- write-host "PSake is now ready. You can type 'psake' from any command line at any path. Get started by typing 'psake /?'"
-
- Write-ChocolateySuccess 'psake'
-} catch {
- Write-ChocolateyFailure 'psake' "$($_.Exception.Message)"
- throw
-}
\ No newline at end of file
diff --git a/Tools/psake/en-US/psake.psm1-help.xml b/Tools/psake/en-US/psake.psm1-help.xml
deleted file mode 100644
index d82b2f3..0000000
--- a/Tools/psake/en-US/psake.psm1-help.xml
+++ /dev/null
@@ -1,2130 +0,0 @@
-
-
-
-
- Invoke-psake
-
- Runs a psake build script.
-
-
-
-
- Invoke
- psake
-
-
-
- This function runs a psake build script
-
-
-
- Invoke-psake
-
- buildFile
- String
-
-
- taskList
- String[]
-
-
- framework
- String
-
-
- docs
- SwitchParameter
-
-
- parameters
- Hashtable
-
-
- properties
- Hashtable
-
-
- nologo
- SwitchParameter
-
-
-
-
-
- buildFile
-
- The path to the psake build script to execute
-
- String
-
- String
-
-
- 'default.ps1'
-
-
- taskList
-
- A comma-separated list of task names to execute
-
- String[]
-
- String[]
-
-
-
-
-
- framework
-
- The version of the .NET framework you want to use during build. You can append x86 or x64 to force a specific framework. If not specified, x86 or x64 will be detected based on the bitness of the PowerShell process.
-Possible values: '1.0', '1.1', '2.0', '2.0x86', '2.0x64', '3.0', '3.0x86', '3.0x64', '3.5', '3.5x86', '3.5x64', '4.0', '4.0x86', '4.0x64'
-
- String
-
- String
-
-
- '3.5'
-
-
- docs
-
- Prints a list of tasks and their descriptions
-
- SwitchParameter
-
- SwitchParameter
-
-
-
-
-
- parameters
-
- A hashtable containing parameters to be passed into the current build script. These parameters will be processed before the 'Properties' function of the script is processed. This means you can access parameters from within the 'Properties' function!
-
-
- Hashtable
-
- Hashtable
-
-
-
-
-
- properties
-
- A hashtable containing properties to be passed into the current build script. These properties will override matching properties that are found in the 'Properties' function of the script.
-
- Hashtable
-
- Hashtable
-
-
-
-
-
- nologo
-
- Do not display the startup banner and copyright message.
-
- SwitchParameter
-
- SwitchParameter
-
-
-
-
-
-
-
-
- None
-
-
-
-
-
-
-
-
-
-
-
- None
-
-
-
-
-
-
-
-
-
-
-
-
-
- ---- Exceptions ----
- If there is an exception thrown during the running of a build script psake will set the '$psake.build_success' variable to $false. To detect failue outside PowerShell (for example by build server), finish PowerShell process with non-zero exit code when '$psake.build_success' is $false. Calling psake from 'cmd.exe' with 'psake.cmd' will give you that behaviour.
-
-
-
- ---- $psake variable ----
- When the psake module is loaded a variable called $psake is created which is a hashtable
-containing some variables:
-
-$psake.version # contains the current version of psake
-$psake.context # holds onto the current state of all variables
-$psake.run_by_psake_build_tester # indicates that build is being run by psake-BuildTester
-$psake.config_default # contains default configuration
- # can be overriden in psake-config.ps1 in directory with psake.psm1 or in directory with current build script
-$psake.build_success # indicates that the current build was successful
-$psake.build_script_file # contains a System.IO.FileInfo for the current build script
-$psake.build_script_dir # contains the fully qualified path to the current build script
-
-You should see the following when you display the contents of the $psake variable right after importing psake
-
-PS projects:\psake> Import-Module .\psake.psm1
-PS projects:\psake> $psake
-
-Name Value
----- -----
-run_by_psake_build_tester False
-version 4.2
-build_success False
-build_script_file
-build_script_dir
-config_default @{framework=3.5; ...
-context {}
-
-After a build is executed the following $psake values are updated: build_script_file, build_script_dir, build_success
-
-PS projects:\psake> Invoke-psake .\examples\default.ps1
-Executing task: Clean
-Executed Clean!
-Executing task: Compile
-Executed Compile!
-Executing task: Test
-Executed Test!
-
-Build Succeeded!
-
-----------------------------------------------------------------------
-Build Time Report
-----------------------------------------------------------------------
-Name Duration
----- --------
-Clean 00:00:00.0798486
-Compile 00:00:00.0869948
-Test 00:00:00.0958225
-Total: 00:00:00.2712414
-
-PS projects:\psake> $psake
-
-Name Value
----- -----
-build_script_file YOUR_PATH\examples\default.ps1
-run_by_psake_build_tester False
-build_script_dir YOUR_PATH\examples
-context {}
-version 4.2
-build_success True
-config_default @{framework=3.5; ...
-
-
-
-
-
-
-
- -------------- EXAMPLE 1 --------------
-
- C:\PS>
-
- Invoke-psake
-
- Description
- -----------
- Runs the 'default' task in the '.build.ps1' build script
-
-
-
-
-
-
-
-
-
-
-
- -------------- EXAMPLE 2 --------------
-
- C:\PS>
-
- Invoke-psake '.\build.ps1' Tests,Package
-
- Description
- -----------
- Runs the 'Tests' and 'Package' tasks in the '.build.ps1' build script
-
-
-
-
-
-
-
-
-
-
-
- -------------- EXAMPLE 3 --------------
-
- C:\PS>
-
- Invoke-psake Tests
-
- Description
- -----------
- This example will run the 'Tests' tasks in the 'default.ps1' build script. The 'default.ps1' is assumed to be in the current directory.
-
-
-
-
-
-
-
-
-
-
-
- -------------- EXAMPLE 4 --------------
-
- C:\PS>
-
- Invoke-psake 'Tests, Package'
-
- Description
- -----------
- This example will run the 'Tests' and 'Package' tasks in the 'default.ps1' build script. The 'default.ps1' is assumed to be in the current directory.
- NOTE: The quotes around the list of tasks to execute is required if you want to execute more than 1 task.
-
-
-
-
-
-
-
-
-
-
- -------------- EXAMPLE 5 --------------
-
- C:\PS>
-
- Invoke-psake .\build.ps1 -docs
-
- Description
- -----------
- Prints a report of all the tasks and their dependencies and descriptions and then exits
-
-
-
-
-
-
-
-
-
-
-
- -------------- EXAMPLE 6 --------------
-
- C:\PS>
-
- Invoke-psake .\parameters.ps1 -parameters @{"p1"="v1";"p2"="v2"}
-
- Description
- -----------
- Runs the build script called 'parameters.ps1' and passes in parameters 'p1' and 'p2' with values 'v1' and 'v2'
- Here's the .\parameters.ps1 build script:
-
-
- properties {
- $my_property = $p1 + $p2
-}
-
-task default -depends TestParams
-
-task TestParams {
- Assert ($my_property -ne $null) '$my_property should not be null'
-}
-
- Notice how you can refer to the parameters that were passed into the script from within the “properties” function. The value of the $p1 variable should be the string “v1” and the value of the $p2 variable should be “v2”.
-
-
-
-
-
-
-
-
-
- -------------- EXAMPLE 7 --------------
-
- C:\PS>
-
- Invoke-psake .\properties.ps1 -properties @{"x"="1";"y"="2"}
-
- Description
- -----------
- Runs the build script called 'properties.ps1' and passes in parameters 'x' and 'y' with values '1' and '2'
- This feature allows you to over-ride existing properties in your build script.
-
- Here's the .\properties.ps1 build script
- properties {
- $x = $null
- $y = $null
- $z = $null
-}
-
-task default -depends TestProperties
-
-task TestProperties {
- Assert ($x -ne $null) "x should not be null"
- Assert ($y -ne $null) "y should not be null"
- Assert ($z -eq $null) "z should be null"
-}
-
-
-
-
-
-
-
-
-
-
-
-
- Task
-
-
-
- Include
-
-
-
- Properties
-
-
-
- FormatTaskName
-
-
-
- TaskSetup
-
-
-
- TaskTearDown
-
-
-
- Assert
-
-
-
- Framework
-
-
-
-
-
-
-
- TaskTearDown
-
- Adds a scriptblock to the build that will be executed after each task
-
-
-
-
-
-
-
-
-
- This function will accept a scriptblock that will be executed after each
-task in the build script.
-
-
-
- TaskTearDown
-
- teardown
- ScriptBlock
-
-
-
-
-
- teardown
-
- A scriptblock to execute
-
- ScriptBlock
-
- ScriptBlock
-
-
-
-
-
-
-
-
- None
-
-
-
-
-
-
-
-
-
-
-
- None
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -------------- EXAMPLE 1 --------------
-
- C:\PS>
-
- A sample build script is shown below:
-
-Task default -depends Test
-
-Task Test -depends Compile, Clean {
-}
-
-Task Compile -depends Clean {
-}
-
-Task Clean {
-}
-
-TaskTearDown {
- "Running 'TaskTearDown' for task $context.Peek().currentTaskName"
-}
-
- Description
- -----------
- The script above produces the following output:
- Executing task, Clean...
-Running 'TaskTearDown' for task Clean
-Executing task, Compile...
-Running 'TaskTearDown' for task Compile
-Executing task, Test...
-Running 'TaskTearDown' for task Test
-
-Build Succeeded
-
-
-
-
-
-
-
-
-
-
-
- Task
-
-
-
- Include
-
-
-
- Properties
-
-
-
- Invoke-psake
-
-
-
- TaskSetup
-
-
-
- TaskTearDown
-
-
-
- Assert
-
-
-
- Framework
-
-
-
-
-
-
-
- TaskSetup
-
- Adds a scriptblock that will be executed before each task
-
-
-
-
-
-
-
-
-
- This function will accept a scriptblock that will be executed before each
-task in the build script.
-
-
-
- TaskSetup
-
- setup
- ScriptBlock
-
-
-
-
-
- setup
-
- A scriptblock to execute
-
- ScriptBlock
-
- ScriptBlock
-
-
-
-
-
-
-
-
- None
-
-
-
-
-
-
-
-
-
-
-
- None
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -------------- EXAMPLE 1 --------------
-
- C:\PS>
-
- A sample build script is shown below:
-
-Task default -depends Test
-
-Task Test -depends Compile, Clean {
-}
-
-Task Compile -depends Clean {
-}
-
-Task Clean {
-}
-
-TaskSetup {
- "Running 'TaskSetup' for task $context.Peek().currentTaskName"
-}
-
- Description
- -----------
- The script above produces the following output:
- Running 'TaskSetup' for task Clean
-Executing task, Clean...
-Running 'TaskSetup' for task Compile
-Executing task, Compile...
-Running 'TaskSetup' for task Test
-Executing task, Test...
-
-Build Succeeded
-
-
-
-
-
-
-
-
-
-
-
- Task
-
-
-
- Include
-
-
-
- Properties
-
-
-
- Invoke-psake
-
-
-
- FormatTaskName
-
-
-
- TaskTearDown
-
-
-
- Assert
-
-
-
- Framework
-
-
-
-
-
-
-
- Framework
-
- Sets the version of the .NET framework you want to use during build.
-
-
-
-
-
-
-
-
-
- This function will accept a string containing version of the .NET framework to use during build. Possible values: '1.0', '1.1', '2.0', '2.0x86', '2.0x64', '3.0', '3.0x86', '3.0x64', '3.5', '3.5x86', '3.5x64', '4.0', '4.0x86', '4.0x64'. Default is '3.5*', where x86 or x64 will be detected based on the bitness of the PowerShell process.
-
-
-
- Framework
-
- framework
- string
-
-
-
-
-
- framework
-
- Version of the .NET framework to use during build.
-
- string
-
- string
-
-
-
-
-
-
-
-
- None
-
-
-
-
-
-
-
-
-
-
-
- None
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -------------- EXAMPLE 1 --------------
-
-Framework "4.0"
-
-Task default -depends Compile
-
-Task Compile -depends Clean {
- msbuild /version
-}
-
- Description
- -----------
- The script above will output detailed version of msbuid v4
-
-
-
-
-
-
-
-
-
-
-
- Task
-
-
-
- Include
-
-
-
- Properties
-
-
-
- Invoke-psake
-
-
-
- FormatTaskName
-
-
-
- TaskSetup
-
-
-
- TaskTearDown
-
-
-
- Assert
-
-
-
-
-
-
-
- FormatTaskName
-
- This function allows you to change how psake renders the task name during a build.
-
-
-
-
-
-
-
-
-
- This function takes either a string which represents a format string (formats using the -f format operator see “help about_operators”) or it can accept a script block that has a single parameter that is the name of the task that will be executed.
-
-
-
- FormatTaskName
-
- format
- String or ScriptBlock
-
-
-
-
-
- format
-
- A format string or a scriptblock to execute
-
- String or ScriptBlock
-
- String or ScriptBlock
-
-
-
-
-
-
-
-
- None
-
-
-
-
-
-
-
-
-
-
-
- None
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -------------- EXAMPLE 1 --------------
-
- C:\PS>
-
- A sample build script that uses a format string is shown below:
-
-Task default -depends TaskA, TaskB, TaskC
-
-FormatTaskName "-------- {0} --------"
-
-Task TaskA {
- "TaskA is executing"
-}
-
-Task TaskB {
- "TaskB is executing"
-}
-
-Task TaskC {
- "TaskC is executing"
-}
-
- Description
- -----------
- The script above produces the following output:
- -------- TaskA --------
-TaskA is executing
--------- TaskB --------
-TaskB is executing
--------- TaskC --------
-TaskC is executing
-
-Build Succeeded!
-
-
-
-
-
-
-
-
-
- -------------- EXAMPLE 2 --------------
-
- C:\PS>
-
- A sample build script that uses a ScriptBlock is shown below:
-
-Task default -depends TaskA, TaskB, TaskC
-
-FormatTaskName {
- param($taskName)
- write-host "Executing Task: $taskName" -foregroundcolor blue
-}
-
-Task TaskA {
- "TaskA is executing"
-}
-
-Task TaskB {
- "TaskB is executing"
-}
-
-Task TaskC {
- "TaskC is executing"
-}
-
- Description
- -----------
- The preceding example uses the scriptblock parameter to the FormatTaskName function to render each task name in the color blue.
- Note: the $taskName parameter is arbitrary it could be named anything
-
-
-
-
-
-
-
-
-
-
-
- Task
-
-
-
- Include
-
-
-
- Properties
-
-
-
- Invoke-psake
-
-
-
- TaskSetup
-
-
-
- TaskTearDown
-
-
-
- Assert
-
-
-
- Framework
-
-
-
-
-
-
-
- Include
-
- Include the functions or code of another powershell script file into the current build script's scope
-
-
-
-
-
-
-
-
-
- A build script may declare an "includes" function which allows you to define a file containing powershell code to be included and added to the scope of the currently running build script. Code from such file will be executed after code from build script.
-
-
-
- Include
-
- fileNamePathToInclude
- String
-
-
-
-
-
- fileNamePathToInclude
-
- A string containing the path and name of the powershell file to include
-
- String
-
- String
-
-
-
-
-
-
-
-
- None
-
-
-
-
-
-
-
-
-
-
-
- None
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -------------- EXAMPLE 1 --------------
-
- C:\PS>
-
- A sample build script is shown below:
-
-Include ".\build_utils.ps1"
-
-Task default -depends Test
-
-Task Test -depends Compile, Clean {
-}
-
-Task Compile -depends Clean {
-}
-
-Task Clean {
-}
-
- Description
- -----------
- The script above includes all the functions and variables defined in the ".\build_utils.ps1" script into the current build script's scope
- Note: You can have more than 1 "Include" function defined in the build script
-
-
-
-
-
-
-
-
-
-
-
- Task
-
-
-
- FormatTaskName
-
-
-
- Properties
-
-
-
- Invoke-psake
-
-
-
- TaskSetup
-
-
-
- TaskTearDown
-
-
-
- Assert
-
-
-
- Framework
-
-
-
-
-
-
-
- Properties
-
- Define a scriptblock that contains assignments to variables that will be available to all tasks in the build script
-
-
-
-
-
-
-
-
-
- A build script may declare a "Properies" function which allows you to define variables that will be available to all the "Task" functions in the build script.
-
-
-
- Properties
-
- properties
- ScriptBlock
-
-
-
-
-
- properties
-
- The script block containing all the variable assignment statements
-
- ScriptBlock
-
- ScriptBlock
-
-
-
-
-
-
-
-
- None
-
-
-
-
-
-
-
-
-
-
-
- None
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -------------- EXAMPLE 1 --------------
-
- C:\PS>
-
- A sample build script is shown below:
-
-Properties {
- $build_dir = "c:\build"
- $connection_string = "datasource=localhost;initial catalog=northwind;integrated security=sspi"
-}
-
-Task default -depends Test
-
-Task Test -depends Compile, Clean {
-}
-
-Task Compile -depends Clean {
-}
-
-Task Clean {
-}
-
- Description
- -----------
- Note: You can have more than 1 "Properties" function defined in the build script
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Task
-
-
-
- FormatTaskName
-
-
-
- Include
-
-
-
- Invoke-psake
-
-
-
- TaskSetup
-
-
-
- TaskTearDown
-
-
-
- Assert
-
-
-
- Framework
-
-
-
-
-
-
-
- Task
-
- Defines a build task to be executed by psake
-
-
-
-
-
-
-
-
-
- This function creates a 'task' object that will be used by the psake engine to execute a build task. Note: There must be at least one task called 'default' in the build script
-
-
-
- Task
-
- Name
- String
-
-
- Action
- ScriptBlock
-
-
- PreAction
- ScriptBlock
-
-
- PostAction
- ScriptBlock
-
-
- Precondition
- ScriptBlock
-
-
- Postcondition
- ScriptBlock
-
-
- ContinueOnError
- Boolean
-
-
- Depends
- String[]
-
-
- RequiredVariables
- String[]
-
-
- Description
- String[]
-
-
-
-
-
- Name
-
- The name of the task
-
- String
-
- String
-
-
-
-
-
- Action
-
- A scriptblock containing the statements to execute for the task.
-
- ScriptBlock
-
- ScriptBlock
-
-
-
-
-
- PreAction
-
- A scriptblock to be executed before the 'Action' scriptblock. Note: This parameter is ignored if the 'Action' scriptblock is not defined.
-
- ScriptBlock
-
- ScriptBlock
-
-
-
-
-
- PostAction
-
- A scriptblock to be executed after the 'Action' scriptblock. Note: This parameter is ignored if the 'Action' scriptblock is not defined.
-
- ScriptBlock
-
- ScriptBlock
-
-
-
-
-
- Precondition
-
- A scriptblock that is executed to determine if the task is executed or skipped. This scriptblock should return $true or $false
-
- ScriptBlock
-
- ScriptBlock
-
-
-
-
-
- Postcondition
-
- A scriptblock that is executed to determine if the task completed its job correctly. An exception is thrown if the scriptblock returns $false.
-
- ScriptBlock
-
- ScriptBlock
-
-
-
-
-
- ContinueOnError
-
- If this switch parameter is set then the task will not cause the build to fail when an exception is thrown by the task
-
- SwitchParameter
-
- SwitchParameter
-
-
-
-
-
- Depends
-
- An array of task names that this task depends on. These tasks will be executed before the current task is executed.
-
- String[]
-
- String[]
-
-
-
-
-
- RequiredVariables
-
- An array of names of variables that must be set to run this task.
-
- String[]
-
- String[]
-
-
-
-
-
- Description
-
- A description of the task.
-
- String
-
- String
-
-
-
-
-
-
-
-
- None
-
-
-
-
-
-
-
-
-
-
-
- None
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -------------- EXAMPLE 1 --------------
-
- C:\PS>
-
- A sample build script is shown below:
-
-Task default -Depends Test
-
-Task Test -Depends Compile, Clean {
- "This is a test"
-}
-
-Task Compile -Depends Clean {
- "Compile"
-}
-
-Task Clean {
- "Clean"
-}
-
-The 'default' task is required and should not contain an 'Action' parameter.
-It uses the 'Depends' parameter to specify that 'Test' is a dependency
-
-The 'Test' task uses the 'Depends' parameter to specify that 'Compile' and 'Clean' are dependencies
-The 'Compile' task depends on the 'Clean' task.
-
-Note:
-The 'Action' parameter is defaulted to the script block following the 'Clean' task.
-
-An equivalent 'Test' task is shown below:
-
-Task Test -Depends Compile, Clean -Action {
- $testMessage
-}
-
-The output for the above sample build script is shown below:
-Executing task, Clean...
-Clean
-Executing task, Compile...
-Compile
-Executing task, Test...
-This is a test
-
-Build Succeeded!
-
-----------------------------------------------------------------------
-Build Time Report
-----------------------------------------------------------------------
-Name Duration
----- --------
-Clean 00:00:00.0065614
-Compile 00:00:00.0133268
-Test 00:00:00.0225964
-Total: 00:00:00.0782496
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Properties
-
-
-
- FormatTaskName
-
-
-
- Include
-
-
-
- Invoke-psake
-
-
-
- TaskSetup
-
-
-
- TaskTearDown
-
-
-
- Assert
-
-
-
- Framework
-
-
-
-
-
-
-
- Assert
-
- Helper function for "Design by Contract" assertion checking.
-
-
-
-
-
-
-
-
-
- This is a helper function that makes the code less noisy by eliminating many of the "if" statements that are normally required to verify assumptions in the code.
-
-
-
- Assert
-
- conditionToCheck
- Boolean
-
-
- failureMessage
- String
-
-
-
-
-
- conditionToCheck
-
- The boolean condition to evaluate
-
- Boolean
-
- Boolean
-
-
-
-
-
- failureMessage
-
- The error message used for the exception if the conditionToCheck parameter is false
-
- String
-
- String
-
-
-
-
-
-
-
-
- None
-
-
-
-
-
-
-
-
-
-
-
- None
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -------------- EXAMPLE 1 --------------
-
- C:\PS>
-
- Assert $false "This always throws an exception"
-
-
-
-
-
-
-
-
-
-
-
-
- -------------- EXAMPLE 2 --------------
-
- C:\PS>
-
- Assert ( ($i % 2) -eq 0 ) "$i is not an even number"
-
- Description
- -----------
- This exmaple may throw an exception if $i is not an even number
-
- Note:
- It might be necessary to wrap the condition with paranthesis to force PS to evaluate the condition
-so that a boolean value is calculated and passed into the 'conditionToCheck' parameter.
-
-Example:
- Assert 1 -eq 2 "1 doesn't equal 2"
-
-PS will pass 1 into the condtionToCheck variable and PS will look for a parameter called "eq" and
-throw an exception with the following message "A parameter cannot be found that matches parameter name 'eq'"
-
-The solution is to wrap the condition in () so that PS will evaluate it first.
-
- Assert (1 -eq 2) "1 doesn't equal 2"
-
-
-
-
-
-
-
-
-
-
-
-
- Task
-
-
-
- FormatTaskName
-
-
-
- Include
-
-
-
- Invoke-psake
-
-
-
- TaskSetup
-
-
-
- TaskTearDown
-
-
-
- Properties
-
-
-
-
- Framework
-
-
-
-
-
-
- Exec
-
- Helper function for executing command-line programs.
-
-
-
-
-
-
-
-
-
- This is a helper function that runs a scriptblock and checks the PS variable $lastexitcode to see if an error occcured. If an error is detected then an exception is thrown. This function allows you to run command-line programs without having to explicitly check fthe $lastexitcode variable.
-
-
-
- Exec
-
- cmd
- ScriptBlock
-
-
- errorMessage
- String
-
-
-
-
-
- cmd
-
- The scriptblock to execute. This scriptblock will typically contain the command-line invocation.
-
- ScriptBlock
-
- Boolean
-
-
-
-
-
- failureMessage
-
- The error message used for the exception that is thrown.
-
- String
-
- String
-
-
-
-
-
-
-
-
- None
-
-
-
-
-
-
-
-
-
-
-
- None
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -------------- EXAMPLE 1 --------------
-
- C:\PS>
-
- exec { svn info $repository_trunk } "Error executing SVN. Please verify SVN command-line client is installed"
-
- This example calls the svn command-line client.
-
-
-
-
-
-
-
-
-
-
-
-
-
- Assert
-
-
-
- FormatTaskName
-
-
-
- Include
-
-
-
- Invoke-psake
-
-
-
- Properties
-
-
-
- Task
-
-
-
- TaskSetup
-
-
-
- TaskTearDown
-
-
-
-
- Framework
-
-
-
-
-
-
- Invoke-Task
-
- Executes another task in the current build script.
-
-
-
-
-
-
-
-
-
- This is a function that will allow you to invoke a Task from within another Task in the current build script.
-
-
-
- Invoke-Task
-
- taskName
- String
-
-
-
-
-
- taskName
-
- The name of the task to execute.
-
- String
-
- String
-
-
-
-
-
-
-
-
- None
-
-
-
-
-
-
-
-
-
-
-
- None
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -------------- EXAMPLE 1 --------------
-
- C:\PS>
-
- Invoke-Task "Compile"
-
- This example calls the "Compile" task.
-
-
-
-
-
-
-
-
-
-
-
-
-
- Assert
-
-
-
- Exec
-
-
-
- FormatTaskName
-
-
-
- Include
-
-
-
- Invoke-psake
-
-
-
- Properties
-
-
-
- Task
-
-
-
- TaskSetup
-
-
-
- TaskTearDown
-
-
-
- Framework
-
-
-
-
-
diff --git a/Tools/psake/examples/checkvariables.ps1 b/Tools/psake/examples/checkvariables.ps1
deleted file mode 100644
index 0d6b0b1..0000000
--- a/Tools/psake/examples/checkvariables.ps1
+++ /dev/null
@@ -1,33 +0,0 @@
-Properties {
- $x = 1
- $y = 2
-}
-
-FormatTaskName "[{0}]"
-
-Task default -Depends Verify
-
-Task Verify -Description "This task verifies psake's variables" {
-
- Assert (Test-Path 'variable:\psake') "psake variable was not exported from module"
-
- Assert ($psake.ContainsKey("version")) "psake variable does not contain 'version'"
- Assert ($psake.ContainsKey("context")) "psake variable does not contain 'context'"
- Assert ($psake.ContainsKey("build_success")) "psake variable does not contain 'build_success'"
- Assert ($psake.ContainsKey("build_script_file")) "psake variable does not contain 'build_script_file'"
- Assert ($psake.ContainsKey("build_script_dir")) "psake variable does not contain 'build_script_dir'"
-
- Assert (![string]::IsNullOrEmpty($psake.version)) '$psake.version was null or empty'
- Assert ($psake.context -ne $null) '$psake.context was null'
- Assert (!$psake.build_success) '$psake.build_success should be $false'
- Assert ($psake.build_script_file -ne $null) '$psake.build_script_file was null'
- Assert ($psake.build_script_file.Name -eq "checkvariables.ps1") ("psake variable: {0} was not equal to 'checkvariables.ps1'" -f $psake.build_script_file.Name)
- Assert (![string]::IsNullOrEmpty($psake.build_script_dir)) '$psake.build_script_dir was null or empty'
-
- Assert ($psake.context.Peek().tasks.Count -ne 0) "psake context variable 'tasks' had length zero"
- Assert ($psake.context.Peek().properties.Count -ne 0) "psake context variable 'properties' had length zero"
- Assert ($psake.context.Peek().includes.Count -eq 0) "psake context variable 'includes' should have had length zero"
- Assert ($psake.context.Peek().config -ne $null) "psake context variable 'config' was null"
-
- Assert ($psake.context.Peek().currentTaskName -eq "Verify") 'psake variable: $currentTaskName was not set correctly'
-}
\ No newline at end of file
diff --git a/Tools/psake/examples/continueonerror.ps1 b/Tools/psake/examples/continueonerror.ps1
deleted file mode 100644
index 08a366c..0000000
--- a/Tools/psake/examples/continueonerror.ps1
+++ /dev/null
@@ -1,14 +0,0 @@
-Task default -Depends TaskA
-
-Task TaskA -Depends TaskB {
- "Task - A"
-}
-
-Task TaskB -Depends TaskC -ContinueOnError {
- "Task - B"
- throw "I failed on purpose!"
-}
-
-Task TaskC {
- "Task - C"
-}
\ No newline at end of file
diff --git a/Tools/psake/examples/default.ps1 b/Tools/psake/examples/default.ps1
deleted file mode 100644
index 4aca358..0000000
--- a/Tools/psake/examples/default.ps1
+++ /dev/null
@@ -1,23 +0,0 @@
-properties {
- $testMessage = 'Executed Test!'
- $compileMessage = 'Executed Compile!'
- $cleanMessage = 'Executed Clean!'
-}
-
-task default -depends Test
-
-task Test -depends Compile, Clean {
- $testMessage
-}
-
-task Compile -depends Clean {
- $compileMessage
-}
-
-task Clean {
- $cleanMessage
-}
-
-task ? -Description "Helper to display task info" {
- Write-Documentation
-}
\ No newline at end of file
diff --git a/Tools/psake/examples/formattaskname_scriptblock.ps1 b/Tools/psake/examples/formattaskname_scriptblock.ps1
deleted file mode 100644
index e4919b9..0000000
--- a/Tools/psake/examples/formattaskname_scriptblock.ps1
+++ /dev/null
@@ -1,24 +0,0 @@
-properties {
- $testMessage = 'Executed Test!'
- $compileMessage = 'Executed Compile!'
- $cleanMessage = 'Executed Clean!'
-}
-
-task default -depends Test
-
-formatTaskName {
- param($taskName)
- write-host $taskName -foregroundcolor Green
-}
-
-task Test -depends Compile, Clean {
- $testMessage
-}
-
-task Compile -depends Clean {
- $compileMessage
-}
-
-task Clean {
- $cleanMessage
-}
\ No newline at end of file
diff --git a/Tools/psake/examples/formattaskname_string.ps1 b/Tools/psake/examples/formattaskname_string.ps1
deleted file mode 100644
index 6687490..0000000
--- a/Tools/psake/examples/formattaskname_string.ps1
+++ /dev/null
@@ -1,21 +0,0 @@
-properties {
- $testMessage = 'Executed Test!'
- $compileMessage = 'Executed Compile!'
- $cleanMessage = 'Executed Clean!'
-}
-
-task default -depends Test
-
-formatTaskName "-------{0}-------"
-
-task Test -depends Compile, Clean {
- $testMessage
-}
-
-task Compile -depends Clean {
- $compileMessage
-}
-
-task Clean {
- $cleanMessage
-}
\ No newline at end of file
diff --git a/Tools/psake/examples/msbuild40.ps1 b/Tools/psake/examples/msbuild40.ps1
deleted file mode 100644
index d02c325..0000000
--- a/Tools/psake/examples/msbuild40.ps1
+++ /dev/null
@@ -1,8 +0,0 @@
-Framework "4.0"
-# Framework "4.0x64"
-
-task default -depends ShowMsBuildVersion
-
-task ShowMsBuildVersion {
- msbuild /version
-}
\ No newline at end of file
diff --git a/Tools/psake/examples/nested.ps1 b/Tools/psake/examples/nested.ps1
deleted file mode 100644
index 36fc830..0000000
--- a/Tools/psake/examples/nested.ps1
+++ /dev/null
@@ -1,17 +0,0 @@
-Properties {
- $x = 1
-}
-
-Task default -Depends RunNested1, RunNested2, CheckX
-
-Task RunNested1 {
- Invoke-psake .\nested\nested1.ps1
-}
-
-Task RunNested2 {
- Invoke-psake .\nested\nested2.ps1
-}
-
-Task CheckX{
- Assert ($x -eq 1) '$x was not 1'
-}
\ No newline at end of file
diff --git a/Tools/psake/examples/nested/nested1.ps1 b/Tools/psake/examples/nested/nested1.ps1
deleted file mode 100644
index 81790ec..0000000
--- a/Tools/psake/examples/nested/nested1.ps1
+++ /dev/null
@@ -1 +0,0 @@
-Properties {
$x = 100
}
Task default -Depends Nested1CheckX
Task Nested1CheckX{
Assert ($x -eq 100) '$x was not 100'
}
\ No newline at end of file
diff --git a/Tools/psake/examples/nested/nested2.ps1 b/Tools/psake/examples/nested/nested2.ps1
deleted file mode 100644
index 7a4a2b8..0000000
--- a/Tools/psake/examples/nested/nested2.ps1
+++ /dev/null
@@ -1 +0,0 @@
-Properties {
$x = 200
}
Task default -Depends Nested2CheckX
Task Nested2CheckX{
Assert ($x -eq 200) '$x was not 200'
}
\ No newline at end of file
diff --git a/Tools/psake/examples/parameters.ps1 b/Tools/psake/examples/parameters.ps1
deleted file mode 100644
index cde5d3c..0000000
--- a/Tools/psake/examples/parameters.ps1
+++ /dev/null
@@ -1,9 +0,0 @@
-properties {
- $my_property = $p1 + $p2
-}
-
-task default -depends TestParams
-
-task TestParams {
- Assert ($my_property -ne $null) "`$my_property should not be null. Run with -parameters @{'p1' = 'v1'; 'p2' = 'v2'}"
-}
\ No newline at end of file
diff --git a/Tools/psake/examples/passingParametersString/build.Release.Version.bat b/Tools/psake/examples/passingParametersString/build.Release.Version.bat
deleted file mode 100644
index 9a734cc..0000000
--- a/Tools/psake/examples/passingParametersString/build.Release.Version.bat
+++ /dev/null
@@ -1,3 +0,0 @@
-powershell -Command "& {Import-Module .\..\..\psake.psm1; Invoke-psake .\parameters.ps1 -parameters @{"buildConfiguration"='Release';} }"
-
-Pause
\ No newline at end of file
diff --git a/Tools/psake/examples/passingParametersString/parameters.ps1 b/Tools/psake/examples/passingParametersString/parameters.ps1
deleted file mode 100644
index 2259320..0000000
--- a/Tools/psake/examples/passingParametersString/parameters.ps1
+++ /dev/null
@@ -1,22 +0,0 @@
-properties {
- $buildOutputPath = ".\bin\$buildConfiguration"
-}
-
-task default -depends DoRelease
-
-task DoRelease {
- Assert ("$buildConfiguration" -ne $null) "buildConfiguration should not have been null"
- Assert ("$buildConfiguration" -eq 'Release') "buildConfiguration=[$buildConfiguration] should have been 'Release'"
-
- Write-Host ""
- Write-Host ""
- Write-Host ""
- Write-Host -NoNewline "Would build output into path "
- Write-Host -NoNewline -ForegroundColor Green "$buildOutputPath"
- Write-Host -NoNewline " for build configuration "
- Write-Host -ForegroundColor Green "$buildConfiguration"
- Write-Host -NoNewline "."
- Write-Host ""
- Write-Host ""
- Write-Host ""
-}
diff --git a/Tools/psake/examples/preandpostaction.ps1 b/Tools/psake/examples/preandpostaction.ps1
deleted file mode 100644
index fcb36e6..0000000
--- a/Tools/psake/examples/preandpostaction.ps1
+++ /dev/null
@@ -1,13 +0,0 @@
-task default -depends Test
-
-task Test -depends Compile, Clean -PreAction {"Pre-Test"} -Action {
- "Test"
-} -PostAction {"Post-Test"}
-
-task Compile -depends Clean {
- "Compile"
-}
-
-task Clean {
- "Clean"
-}
\ No newline at end of file
diff --git a/Tools/psake/examples/preandpostcondition.ps1 b/Tools/psake/examples/preandpostcondition.ps1
deleted file mode 100644
index ce855fb..0000000
--- a/Tools/psake/examples/preandpostcondition.ps1
+++ /dev/null
@@ -1,18 +0,0 @@
-properties {
- $runTaskA = $false
- $taskBSucceded = $true
-}
-
-task default -depends TaskC
-
-task TaskA -precondition { $runTaskA -eq $true } {
- "TaskA executed"
-}
-
-task TaskB -postcondition { $taskBSucceded -eq $true } {
- "TaskB executed"
-}
-
-task TaskC -depends TaskA,TaskB {
- "TaskC executed."
-}
\ No newline at end of file
diff --git a/Tools/psake/examples/properties.ps1 b/Tools/psake/examples/properties.ps1
deleted file mode 100644
index 35c4933..0000000
--- a/Tools/psake/examples/properties.ps1
+++ /dev/null
@@ -1,13 +0,0 @@
-properties {
- $x = $null
- $y = $null
- $z = $null
-}
-
-task default -depends TestProperties
-
-task TestProperties {
- Assert ($x -ne $null) "x should not be null. Run with -properties @{'x' = '1'; 'y' = '2'}"
- Assert ($y -ne $null) "y should not be null. Run with -properties @{'x' = '1'; 'y' = '2'}"
- Assert ($z -eq $null) "z should be null"
-}
\ No newline at end of file
diff --git a/Tools/psake/examples/requiredvariables.ps1 b/Tools/psake/examples/requiredvariables.ps1
deleted file mode 100644
index aca0c7b..0000000
--- a/Tools/psake/examples/requiredvariables.ps1
+++ /dev/null
@@ -1,14 +0,0 @@
-properties {
- $x = $null
- $y = $null
- $z = $null
-}
-
-task default -depends TestRequiredVariables
-
-# you can put arguments to task in multiple lines using `
-task TestRequiredVariables `
- -description "This task shows how to make a variable required to run task. Run this script with -properties @{x = 1; y = 2; z = 3}" `
- -requiredVariables x, y, z `
-{
-}
diff --git a/Tools/psake/examples/tasksetupandteardown.ps1 b/Tools/psake/examples/tasksetupandteardown.ps1
deleted file mode 100644
index 4a94c85..0000000
--- a/Tools/psake/examples/tasksetupandteardown.ps1
+++ /dev/null
@@ -1,17 +0,0 @@
-TaskSetup {
- "Executing task setup"
-}
-
-TaskTearDown {
- "Executing task tear down"
-}
-
-Task default -depends TaskB
-
-Task TaskA {
- "TaskA executed"
-}
-
-Task TaskB -depends TaskA {
- "TaskB executed"
-}
diff --git a/Tools/psake/images/SakeBottle.jpg b/Tools/psake/images/SakeBottle.jpg
deleted file mode 100644
index a3f6692..0000000
Binary files a/Tools/psake/images/SakeBottle.jpg and /dev/null differ
diff --git a/Tools/psake/images/SakeBottleLicense.txt b/Tools/psake/images/SakeBottleLicense.txt
deleted file mode 100644
index 7563976..0000000
--- a/Tools/psake/images/SakeBottleLicense.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-SakeBottle.jpg
-An American produced bottle of Ginjo Sake.
-Shawn Clark Lazyeights Photography http://lazyeights.net/cpg/displayimage.php?pos=-122
-This work is licensed under the Creative Commons Attribution 2.5 License (http://creativecommons.org/licenses/by/2.5/).
\ No newline at end of file
diff --git a/Tools/psake/images/psake.pdn b/Tools/psake/images/psake.pdn
deleted file mode 100644
index 8bd0bef..0000000
Binary files a/Tools/psake/images/psake.pdn and /dev/null differ
diff --git a/Tools/psake/images/psake.png b/Tools/psake/images/psake.png
deleted file mode 100644
index 8ce869f..0000000
Binary files a/Tools/psake/images/psake.png and /dev/null differ
diff --git a/Tools/psake/init.ps1 b/Tools/psake/init.ps1
deleted file mode 100644
index 5ae4d2d..0000000
--- a/Tools/psake/init.ps1
+++ /dev/null
@@ -1,10 +0,0 @@
-param($installPath, $toolsPath, $package)
-
-$psakeModule = Join-Path $toolsPath psake.psm1
-import-module $psakeModule
-
-@"
-========================
-psake - Automated builds with powershell
-========================
-"@ | Write-Host
\ No newline at end of file
diff --git a/Tools/psake/psake-buildTester.ps1 b/Tools/psake/psake-buildTester.ps1
deleted file mode 100644
index 03ccf80..0000000
--- a/Tools/psake/psake-buildTester.ps1
+++ /dev/null
@@ -1,84 +0,0 @@
-function Main()
-{
- write-host "Running psake build tests" -ForeGroundColor GREEN
- remove-module psake -ea SilentlyContinue
- import-module .\psake.psm1
- $psake.run_by_psake_build_tester = $true
- $results = runBuilds
- remove-module psake
-
- ""
- $results | Sort 'Name' | % { if ($_.Result -eq "Passed") { write-host ($_.Name + " (Passed)") -ForeGroundColor 'GREEN'} else { write-host ($_.Name + " (Failed)") -ForeGroundColor 'RED'}}
- ""
-
- $failed = $results | ? { $_.Result -eq "Failed" }
- if ($failed)
- {
- write-host "One or more of the build files failed" -ForeGroundColor RED
- exit 1
- }
- else
- {
- write-host "All Builds Passed" -ForeGroundColor GREEN
- exit 0
- }
-}
-
-function runBuilds()
-{
- $buildFiles = ls specs\*.ps1
- $testResults = @()
-
- #Add a fake build file to the $buildFiles array so that we can verify
- #that Invoke-psake fails
- $non_existant_buildfile = "" | select Name, FullName
- $non_existant_buildfile.Name = "specifying_a_non_existant_buildfile_should_fail.ps1"
- $non_existant_buildfile.FullName = "c:\specifying_a_non_existant_buildfile_should_fail.ps1"
- $buildFiles += $non_existant_buildfile
-
- foreach($buildFile in $buildFiles)
- {
- $testResult = "" | select Name, Result
- $testResult.Name = $buildFile.Name
- invoke-psake $buildFile.FullName -Parameters @{'p1'='v1'; 'p2'='v2'} -Properties @{'x'='1'; 'y'='2'} -Initialization { if(!$container) { $container = @{}; } $container.bar = "bar"; $container.baz = "baz"; $bar = 2; $baz = 3 } | Out-Null
- $testResult.Result = (getResult $buildFile.Name $psake.build_success)
- $testResults += $testResult
- if ($testResult.Result -eq "Passed")
- {
- write-host "." -ForeGroundColor GREEN -NoNewLine
- }
- else
- {
- write-host "F" -ForeGroundColor RED -NoNewLine
- }
- }
-
- return $testResults
-}
-
-function getResult([string]$fileName, [bool]$buildSucceeded)
-{
- $shouldSucceed = $null
- if ($fileName.EndsWith("_should_pass.ps1"))
- {
- $shouldSucceed = $true
- }
- elseif ($fileName.EndsWith("_should_fail.ps1"))
- {
- $shouldSucceed = $false
- }
- else
- {
- throw "Invalid specification syntax. Specs should end with _should_pass or _should_fail. $fileName"
- }
- if ($buildSucceeded -eq $shouldSucceed)
- {
- "Passed"
- }
- else
- {
- "Failed"
- }
-}
-
-main
\ No newline at end of file
diff --git a/Tools/psake/psake-config.ps1 b/Tools/psake/psake-config.ps1
deleted file mode 100644
index 5458701..0000000
--- a/Tools/psake/psake-config.ps1
+++ /dev/null
@@ -1,21 +0,0 @@
-<#
--------------------------------------------------------------------
-Defaults
--------------------------------------------------------------------
-$config.buildFileName="default.ps1"
-$config.framework = "4.0"
-$config.taskNameFormat="Executing {0}"
-$config.verboseError=$false
-$config.coloredOutput = $true
-$config.modules=$null
-
--------------------------------------------------------------------
-Load modules from .\modules folder and from file my_module.psm1
--------------------------------------------------------------------
-$config.modules=(".\modules\*.psm1",".\my_module.psm1")
-
--------------------------------------------------------------------
-Use scriptblock for taskNameFormat
--------------------------------------------------------------------
-$config.taskNameFormat= { param($taskName) "Executing $taskName at $(get-date)" }
-#>
diff --git a/Tools/psake/psake.cmd b/Tools/psake/psake.cmd
deleted file mode 100644
index 58b9371..0000000
--- a/Tools/psake/psake.cmd
+++ /dev/null
@@ -1,11 +0,0 @@
-@echo off
-
-if '%1'=='/?' goto help
-if '%1'=='-help' goto help
-if '%1'=='-h' goto help
-
-powershell -NoProfile -ExecutionPolicy Bypass -Command "& '%~dp0\psake.ps1' %*; if ($psake.build_success -eq $false) { exit 1 } else { exit 0 }"
-goto :eof
-
-:help
-powershell -NoProfile -ExecutionPolicy Bypass -Command "& '%~dp0\psake.ps1' -help"
diff --git a/Tools/psake/psake.ps1 b/Tools/psake/psake.ps1
deleted file mode 100644
index 349a8cb..0000000
--- a/Tools/psake/psake.ps1
+++ /dev/null
@@ -1,46 +0,0 @@
-# Helper script for those who want to run psake without importing the module.
-# Example:
-# .\psake.ps1 "default.ps1" "BuildHelloWord" "4.0"
-
-# Must match parameter definitions for psake.psm1/invoke-psake
-# otherwise named parameter binding fails
-param(
- [Parameter(Position=0,Mandatory=0)]
- [string]$buildFile = 'default.ps1',
- [Parameter(Position=1,Mandatory=0)]
- [string[]]$taskList = @(),
- [Parameter(Position=2,Mandatory=0)]
- [string]$framework,
- [Parameter(Position=3,Mandatory=0)]
- [switch]$docs = $false,
- [Parameter(Position=4,Mandatory=0)]
- [System.Collections.Hashtable]$parameters = @{},
- [Parameter(Position=5, Mandatory=0)]
- [System.Collections.Hashtable]$properties = @{},
- [Parameter(Position=6, Mandatory=0)]
- [alias("init")]
- [scriptblock]$initialization = {},
- [Parameter(Position=7, Mandatory=0)]
- [switch]$nologo = $false,
- [Parameter(Position=8, Mandatory=0)]
- [switch]$help = $false,
- [Parameter(Position=9, Mandatory=0)]
- [string]$scriptPath = $(Split-Path -parent $MyInvocation.MyCommand.path)
-)
-
-# '[p]sake' is the same as 'psake' but $Error is not polluted
-remove-module [p]sake
-import-module (join-path $scriptPath psake.psm1)
-if ($help) {
- Get-Help Invoke-psake -full
- return
-}
-
-if (-not(test-path $buildFile)) {
- $absoluteBuildFile = (join-path $scriptPath $buildFile)
- if (test-path $absoluteBuildFile) {
- $buildFile = $absoluteBuildFile
- }
-}
-
-invoke-psake $buildFile $taskList $framework $docs $parameters $properties $initialization $nologo
diff --git a/Tools/psake/psake.psm1 b/Tools/psake/psake.psm1
deleted file mode 100644
index 133ebce..0000000
--- a/Tools/psake/psake.psm1
+++ /dev/null
@@ -1,702 +0,0 @@
-# psake
-# Copyright (c) 2010 James Kovacs
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-#Requires -Version 2.0
-
-#-- Public Module Functions --#
-
-# .ExternalHelp psake.psm1-help.xml
-function Invoke-Task
-{
- [CmdletBinding()]
- param(
- [Parameter(Position=0,Mandatory=1)] [string]$taskName
- )
-
- Assert $taskName ($msgs.error_invalid_task_name)
-
- $taskKey = $taskName.ToLower()
-
- if ($currentContext.aliases.Contains($taskKey)) {
- $taskName = $currentContext.aliases.$taskKey.Name
- $taskKey = $taskName.ToLower()
- }
-
- $currentContext = $psake.context.Peek()
-
- Assert ($currentContext.tasks.Contains($taskKey)) ($msgs.error_task_name_does_not_exist -f $taskName)
-
- if ($currentContext.executedTasks.Contains($taskKey)) { return }
-
- Assert (!$currentContext.callStack.Contains($taskKey)) ($msgs.error_circular_reference -f $taskName)
-
- $currentContext.callStack.Push($taskKey)
-
- $task = $currentContext.tasks.$taskKey
-
- $precondition_is_valid = & $task.Precondition
-
- if (!$precondition_is_valid) {
- Write-ColoredOutput ($msgs.precondition_was_false -f $taskName) -foregroundcolor Cyan
- } else {
- if ($taskKey -ne 'default') {
-
- if ($task.PreAction -or $task.PostAction) {
- Assert ($task.Action -ne $null) ($msgs.error_missing_action_parameter -f $taskName)
- }
-
- if ($task.Action) {
- try {
- foreach($childTask in $task.DependsOn) {
- Invoke-Task $childTask
- }
-
- $stopwatch = [System.Diagnostics.Stopwatch]::StartNew()
- $currentContext.currentTaskName = $taskName
-
- & $currentContext.taskSetupScriptBlock
-
- if ($task.PreAction) {
- & $task.PreAction
- }
-
- if ($currentContext.config.taskNameFormat -is [ScriptBlock]) {
- & $currentContext.config.taskNameFormat $taskName
- } else {
- Write-ColoredOutput ($currentContext.config.taskNameFormat -f $taskName) -foregroundcolor Cyan
- }
-
- foreach ($variable in $task.requiredVariables) {
- Assert ((test-path "variable:$variable") -and ((get-variable $variable).Value -ne $null)) ($msgs.required_variable_not_set -f $variable, $taskName)
- }
-
- & $task.Action
-
- if ($task.PostAction) {
- & $task.PostAction
- }
-
- & $currentContext.taskTearDownScriptBlock
- $task.Duration = $stopwatch.Elapsed
- } catch {
- if ($task.ContinueOnError) {
- "-"*70
- Write-ColoredOutput ($msgs.continue_on_error -f $taskName,$_) -foregroundcolor Yellow
- "-"*70
- $task.Duration = $stopwatch.Elapsed
- } else {
- throw $_
- }
- }
- } else {
- # no action was specified but we still execute all the dependencies
- foreach($childTask in $task.DependsOn) {
- Invoke-Task $childTask
- }
- }
- } else {
- foreach($childTask in $task.DependsOn) {
- Invoke-Task $childTask
- }
- }
-
- Assert (& $task.Postcondition) ($msgs.postcondition_failed -f $taskName)
- }
-
- $poppedTaskKey = $currentContext.callStack.Pop()
- Assert ($poppedTaskKey -eq $taskKey) ($msgs.error_corrupt_callstack -f $taskKey,$poppedTaskKey)
-
- $currentContext.executedTasks.Push($taskKey)
-}
-
-# .ExternalHelp psake.psm1-help.xml
-function Exec
-{
- [CmdletBinding()]
- param(
- [Parameter(Position=0,Mandatory=1)][scriptblock]$cmd,
- [Parameter(Position=1,Mandatory=0)][string]$errorMessage = ($msgs.error_bad_command -f $cmd)
- )
- & $cmd
- if ($lastexitcode -ne 0) {
- throw ("Exec: " + $errorMessage)
- }
-}
-
-# .ExternalHelp psake.psm1-help.xml
-function Assert
-{
- [CmdletBinding()]
- param(
- [Parameter(Position=0,Mandatory=1)]$conditionToCheck,
- [Parameter(Position=1,Mandatory=1)]$failureMessage
- )
- if (!$conditionToCheck) {
- throw ("Assert: " + $failureMessage)
- }
-}
-
-# .ExternalHelp psake.psm1-help.xml
-function Task
-{
- [CmdletBinding()]
- param(
- [Parameter(Position=0,Mandatory=1)][string]$name = $null,
- [Parameter(Position=1,Mandatory=0)][scriptblock]$action = $null,
- [Parameter(Position=2,Mandatory=0)][scriptblock]$preaction = $null,
- [Parameter(Position=3,Mandatory=0)][scriptblock]$postaction = $null,
- [Parameter(Position=4,Mandatory=0)][scriptblock]$precondition = {$true},
- [Parameter(Position=5,Mandatory=0)][scriptblock]$postcondition = {$true},
- [Parameter(Position=6,Mandatory=0)][switch]$continueOnError = $false,
- [Parameter(Position=7,Mandatory=0)][string[]]$depends = @(),
- [Parameter(Position=8,Mandatory=0)][string[]]$requiredVariables = @(),
- [Parameter(Position=9,Mandatory=0)][string]$description = $null,
- [Parameter(Position=10,Mandatory=0)][string]$alias = $null
- )
- if ($name -eq 'default') {
- Assert (!$action) ($msgs.error_default_task_cannot_have_action)
- }
-
- $newTask = @{
- Name = $name
- DependsOn = $depends
- PreAction = $preaction
- Action = $action
- PostAction = $postaction
- Precondition = $precondition
- Postcondition = $postcondition
- ContinueOnError = $continueOnError
- Description = $description
- Duration = [System.TimeSpan]::Zero
- RequiredVariables = $requiredVariables
- Alias = $alias
- }
-
- $taskKey = $name.ToLower()
-
- $currentContext = $psake.context.Peek()
-
- Assert (!$currentContext.tasks.ContainsKey($taskKey)) ($msgs.error_duplicate_task_name -f $name)
-
- $currentContext.tasks.$taskKey = $newTask
-
- if($alias)
- {
- $aliasKey = $alias.ToLower()
-
- Assert (!$currentContext.aliases.ContainsKey($aliasKey)) ($msgs.error_duplicate_alias_name -f $alias)
-
- $currentContext.aliases.$aliasKey = $newTask
- }
-}
-
-# .ExternalHelp psake.psm1-help.xml
-function Properties {
- [CmdletBinding()]
- param(
- [Parameter(Position=0,Mandatory=1)][scriptblock]$properties
- )
- $psake.context.Peek().properties += $properties
-}
-
-# .ExternalHelp psake.psm1-help.xml
-function Include {
- [CmdletBinding()]
- param(
- [Parameter(Position=0,Mandatory=1)][string]$fileNamePathToInclude
- )
- Assert (test-path $fileNamePathToInclude -pathType Leaf) ($msgs.error_invalid_include_path -f $fileNamePathToInclude)
- $psake.context.Peek().includes.Enqueue((Resolve-Path $fileNamePathToInclude));
-}
-
-# .ExternalHelp psake.psm1-help.xml
-function FormatTaskName {
- [CmdletBinding()]
- param(
- [Parameter(Position=0,Mandatory=1)]$format
- )
- $psake.context.Peek().config.taskNameFormat = $format
-}
-
-# .ExternalHelp psake.psm1-help.xml
-function TaskSetup {
- [CmdletBinding()]
- param(
- [Parameter(Position=0,Mandatory=1)][scriptblock]$setup
- )
- $psake.context.Peek().taskSetupScriptBlock = $setup
-}
-
-# .ExternalHelp psake.psm1-help.xml
-function TaskTearDown {
- [CmdletBinding()]
- param(
- [Parameter(Position=0,Mandatory=1)][scriptblock]$teardown
- )
- $psake.context.Peek().taskTearDownScriptBlock = $teardown
-}
-
-# .ExternalHelp psake.psm1-help.xml
-function Framework {
- [CmdletBinding()]
- param(
- [Parameter(Position=0,Mandatory=1)][string]$framework
- )
- $psake.context.Peek().config.framework = $framework
-}
-
-# .ExternalHelp psake.psm1-help.xml
-function Invoke-psake {
- [CmdletBinding()]
- param(
- [Parameter(Position = 0, Mandatory = 0)][string] $buildFile,
- [Parameter(Position = 1, Mandatory = 0)][string[]] $taskList = @(),
- [Parameter(Position = 2, Mandatory = 0)][string] $framework,
- [Parameter(Position = 3, Mandatory = 0)][switch] $docs = $false,
- [Parameter(Position = 4, Mandatory = 0)][hashtable] $parameters = @{},
- [Parameter(Position = 5, Mandatory = 0)][hashtable] $properties = @{},
- [Parameter(Position = 6, Mandatory = 0)][alias("init")][scriptblock] $initialization = {},
- [Parameter(Position = 7, Mandatory = 0)][switch] $nologo = $false
- )
- try {
- if (-not $nologo) {
- "psake version {0}`nCopyright (c) 2010 James Kovacs`n" -f $psake.version
- }
-
- # If the default.ps1 file exists and the given "buildfile" isn 't found assume that the given
- # $buildFile is actually the target Tasks to execute in the default.ps1 script.
- if ($buildFile -and !(test-path $buildFile -pathType Leaf) -and (test-path $psake.config_default.buildFileName -pathType Leaf)) {
- $taskList = $buildFile.Split(', ')
- $buildFile = $psake.config_default.buildFileName
- }
-
- # Execute the build file to set up the tasks and defaults
- Assert (test-path $buildFile -pathType Leaf) ($msgs.error_build_file_not_found -f $buildFile)
-
- $psake.build_script_file = get-item $buildFile
- $psake.build_script_dir = $psake.build_script_file.DirectoryName
- $psake.build_success = $false
-
- $psake.context.push(@{
- "taskSetupScriptBlock" = {};
- "taskTearDownScriptBlock" = {};
- "executedTasks" = new-object System.Collections.Stack;
- "callStack" = new-object System.Collections.Stack;
- "originalEnvPath" = $env:path;
- "originalDirectory" = get-location;
- "originalErrorActionPreference" = $global:ErrorActionPreference;
- "tasks" = @{};
- "aliases" = @{};
- "properties" = @();
- "includes" = new-object System.Collections.Queue;
- "config" = Create-ConfigurationForNewContext $buildFile $framework
- })
-
- Load-Configuration $psake.build_script_dir
-
- Load-Modules
-
- $stopwatch = [System.Diagnostics.Stopwatch]::StartNew()
-
- set-location $psake.build_script_dir
-
- $frameworkOldValue = $framework
- . $psake.build_script_file.FullName
-
- $currentContext = $psake.context.Peek()
-
- if ($framework -ne $frameworkOldValue) {
- write-coloredoutput $msgs.warning_deprecated_framework_variable -foregroundcolor Yellow
- $currentContext.config.framework = $framework
- }
-
- if ($docs) {
- Write-Documentation
- Cleanup-Environment
- return
- }
-
- Configure-BuildEnvironment
-
- while ($currentContext.includes.Count -gt 0) {
- $includeFilename = $currentContext.includes.Dequeue()
- . $includeFilename
- }
-
- foreach ($key in $parameters.keys) {
- if (test-path "variable:\$key") {
- set-item -path "variable:\$key" -value $parameters.$key | out-null
- } else {
- new-item -path "variable:\$key" -value $parameters.$key | out-null
- }
- }
-
- # The initial dot (.) indicates that variables initialized/modified in the propertyBlock are available in the parent scope.
- foreach ($propertyBlock in $currentContext.properties) {
- . $propertyBlock
- }
-
- foreach ($key in $properties.keys) {
- if (test-path "variable:\$key") {
- set-item -path "variable:\$key" -value $properties.$key | out-null
- }
- }
-
- # Simple dot sourcing will not work. We have to force the script block into our
- # module's scope in order to initialize variables properly.
- . $MyInvocation.MyCommand.Module $initialization
-
- # Execute the list of tasks or the default task
- if ($taskList) {
- foreach ($task in $taskList) {
- invoke-task $task
- }
- } elseif ($currentContext.tasks.default) {
- invoke-task default
- } else {
- throw $msgs.error_no_default_task
- }
-
- Write-ColoredOutput ("`n" + $msgs.build_success + "`n") -foregroundcolor Green
-
- Write-TaskTimeSummary $stopwatch.Elapsed
-
- $psake.build_success = $true
- } catch {
- $currentConfig = Get-CurrentConfigurationOrDefault
- if ($currentConfig.verboseError) {
- $error_message = "{0}: An Error Occurred. See Error Details Below: `n" -f (Get-Date)
- $error_message += ("-" * 70) + "`n"
- $error_message += Resolve-Error $_
- $error_message += ("-" * 70) + "`n"
- $error_message += "Script Variables" + "`n"
- $error_message += ("-" * 70) + "`n"
- $error_message += get-variable -scope script | format-table | out-string
- } else {
- # ($_ | Out-String) gets error messages with source information included.
- $error_message = "{0}: An Error Occurred: `n{1}" -f (Get-Date), ($_ | Out-String)
- }
-
- $psake.build_success = $false
-
- if (!$psake.run_by_psake_build_tester) {
- # if we are running in a nested scope (i.e. running a psake script from a psake script) then we need to re-throw the exception
- # so that the parent script will fail otherwise the parent script will report a successful build
- $inNestedScope = ($psake.context.count -gt 1)
- if ( $inNestedScope ) {
- throw $_
- } else {
- Write-ColoredOutput $error_message -foregroundcolor Red
- }
-
- }
- } finally {
- Cleanup-Environment
- }
-}
-
-#-- Private Module Functions --#
-function Write-ColoredOutput {
- param(
- [string] $message,
- [System.ConsoleColor] $foregroundcolor
- )
-
- $currentConfig = Get-CurrentConfigurationOrDefault
- if ($currentConfig.coloredOutput -eq $true) {
- if (($Host.UI -ne $null) -and ($Host.UI.RawUI -ne $null)) {
- $previousColor = $Host.UI.RawUI.ForegroundColor
- $Host.UI.RawUI.ForegroundColor = $foregroundcolor
- }
- }
-
- $message
-
- if ($previousColor -ne $null) {
- $Host.UI.RawUI.ForegroundColor = $previousColor
- }
-}
-
-function Load-Modules {
- $currentConfig = $psake.context.peek().config
- if ($currentConfig.modules) {
- $currentConfig.modules | foreach {
- resolve-path $_ | foreach {
- "Loading module: $_"
- $module = import-module $_ -passthru
- if (!$module) {
- throw ($msgs.error_loading_module -f $_.Name)
- }
- }
- }
- ""
- }
-}
-
-function Load-Configuration {
- param(
- [string] $configdir = $PSScriptRoot
- )
-
- $psakeConfigFilePath = (join-path $configdir "psake-config.ps1")
-
- if (test-path $psakeConfigFilePath -pathType Leaf) {
- try {
- $config = Get-CurrentConfigurationOrDefault
- . $psakeConfigFilePath
- } catch {
- throw "Error Loading Configuration from psake-config.ps1: " + $_
- }
- }
-}
-
-function Get-CurrentConfigurationOrDefault() {
- if ($psake.context.count -gt 0) {
- return $psake.context.peek().config
- } else {
- return $psake.config_default
- }
-}
-
-function Create-ConfigurationForNewContext {
- param(
- [string] $buildFile,
- [string] $framework
- )
-
- $previousConfig = Get-CurrentConfigurationOrDefault
-
- $config = new-object psobject -property @{
- buildFileName = $previousConfig.buildFileName;
- framework = $previousConfig.framework;
- taskNameFormat = $previousConfig.taskNameFormat;
- verboseError = $previousConfig.verboseError;
- coloredOutput = $previousConfig.coloredOutput;
- modules = $previousConfig.modules
- }
-
- if ($framework) {
- $config.framework = $framework;
- }
-
- if ($buildFile) {
- $config.buildFileName = $buildFile;
- }
-
- return $config
-}
-
-function Configure-BuildEnvironment {
- $framework = $psake.context.peek().config.framework
- if ($framework.Length -ne 3 -and $framework.Length -ne 6) {
- throw ($msgs.error_invalid_framework -f $framework)
- }
- $versionPart = $framework.Substring(0, 3)
- $bitnessPart = $framework.Substring(3)
- $versions = $null
- switch ($versionPart) {
- '1.0' {
- $versions = @('v1.0.3705')
- }
- '1.1' {
- $versions = @('v1.1.4322')
- }
- '2.0' {
- $versions = @('v2.0.50727')
- }
- '3.0' {
- $versions = @('v2.0.50727')
- }
- '3.5' {
- $versions = @('v3.5', 'v2.0.50727')
- }
- '4.0' {
- $versions = @('v4.0.30319')
- }
- default {
- throw ($msgs.error_unknown_framework -f $versionPart, $framework)
- }
- }
-
- $bitness = 'Framework'
- if ($versionPart -ne '1.0' -and $versionPart -ne '1.1') {
- switch ($bitnessPart) {
- 'x86' {
- $bitness = 'Framework'
- }
- 'x64' {
- $bitness = 'Framework64'
- }
- { [string]::IsNullOrEmpty($_) } {
- $ptrSize = [System.IntPtr]::Size
- switch ($ptrSize) {
- 4 {
- $bitness = 'Framework'
- }
- 8 {
- $bitness = 'Framework64'
- }
- default {
- throw ($msgs.error_unknown_pointersize -f $ptrSize)
- }
- }
- }
- default {
- throw ($msgs.error_unknown_bitnesspart -f $bitnessPart, $framework)
- }
- }
- }
- $frameworkDirs = $versions | foreach { "$env:windir\Microsoft.NET\$bitness\$_\" }
-
- $frameworkDirs | foreach { Assert (test-path $_ -pathType Container) ($msgs.error_no_framework_install_dir_found -f $_)}
-
- $env:path = ($frameworkDirs -join ";") + ";$env:path"
- # if any error occurs in a PS function then "stop" processing immediately
- # this does not effect any external programs that return a non-zero exit code
- $global:ErrorActionPreference = "Stop"
-}
-
-function Cleanup-Environment {
- if ($psake.context.Count -gt 0) {
- $currentContext = $psake.context.Peek()
- $env:path = $currentContext.originalEnvPath
- Set-Location $currentContext.originalDirectory
- $global:ErrorActionPreference = $currentContext.originalErrorActionPreference
- [void] $psake.context.Pop()
- }
-}
-
-# borrowed from Jeffrey Snover http://blogs.msdn.com/powershell/archive/2006/12/07/resolve-error.aspx
-function Resolve-Error($ErrorRecord = $Error[0]) {
- $error_message = "`nErrorRecord:{0}ErrorRecord.InvocationInfo:{1}Exception:{2}"
- $formatted_errorRecord = $ErrorRecord | format-list * -force | out-string
- $formatted_invocationInfo = $ErrorRecord.InvocationInfo | format-list * -force | out-string
- $formatted_exception = ""
- $Exception = $ErrorRecord.Exception
- for ($i = 0; $Exception; $i++, ($Exception = $Exception.InnerException)) {
- $formatted_exception += ("$i" * 70) + "`n"
- $formatted_exception += $Exception | format-list * -force | out-string
- $formatted_exception += "`n"
- }
-
- return $error_message -f $formatted_errorRecord, $formatted_invocationInfo, $formatted_exception
-}
-
-function Write-Documentation {
- $currentContext = $psake.context.Peek()
-
- if ($currentContext.tasks.default) {
- $defaultTaskDependencies = $currentContext.tasks.default.DependsOn
- } else {
- $defaultTaskDependencies = @()
- }
-
- $currentContext.tasks.Keys | foreach-object {
- if ($_ -eq "default") {
- return
- }
-
- $task = $currentContext.tasks.$_
- new-object PSObject -property @{
- Name = $task.Name;
- Description = $task.Description;
- "Depends On" = $task.DependsOn -join ", "
- Default = if ($defaultTaskDependencies -contains $task.Name) { $true }
- }
- } | sort 'Name' | format-table -autoSize -property Name,Description,"Depends On",Default
-}
-
-function Write-TaskTimeSummary($invokePsakeDuration) {
- "-" * 70
- "Build Time Report"
- "-" * 70
- $list = @()
- $currentContext = $psake.context.Peek()
- while ($currentContext.executedTasks.Count -gt 0) {
- $taskKey = $currentContext.executedTasks.Pop()
- $task = $currentContext.tasks.$taskKey
- if ($taskKey -eq "default") {
- continue
- }
- $list += new-object PSObject -property @{
- Name = $task.Name;
- Duration = $task.Duration
- }
- }
- [Array]::Reverse($list)
- $list += new-object PSObject -property @{
- Name = "Total:";
- Duration = $invokePsakeDuration
- }
- # using "out-string | where-object" to filter out the blank line that format-table prepends
- $list | format-table -autoSize -property Name,Duration | out-string -stream | where-object { $_ }
-}
-
-DATA msgs {
-convertfrom-stringdata @'
- error_invalid_task_name = Task name should not be null or empty string.
- error_task_name_does_not_exist = Task {0} does not exist.
- error_circular_reference = Circular reference found for task {0}.
- error_missing_action_parameter = Action parameter must be specified when using PreAction or PostAction parameters for task {0}.
- error_corrupt_callstack = Call stack was corrupt. Expected {0}, but got {1}.
- error_invalid_framework = Invalid .NET Framework version, {0} specified.
- error_unknown_framework = Unknown .NET Framework version, {0} specified in {1}.
- error_unknown_pointersize = Unknown pointer size ({0}) returned from System.IntPtr.
- error_unknown_bitnesspart = Unknown .NET Framework bitness, {0}, specified in {1}.
- error_no_framework_install_dir_found = No .NET Framework installation directory found at {0}.
- error_bad_command = Error executing command {0}.
- error_default_task_cannot_have_action = 'default' task cannot specify an action.
- error_duplicate_task_name = Task {0} has already been defined.
- error_duplicate_alias_name = Alias {0} has already been defined.
- error_invalid_include_path = Unable to include {0}. File not found.
- error_build_file_not_found = Could not find the build file {0}.
- error_no_default_task = 'default' task required.
- error_loading_module = Error loading module {0}.
- warning_deprecated_framework_variable = Warning: Using global variable $framework to set .NET framework version used is deprecated. Instead use Framework function or configuration file psake-config.ps1.
- required_variable_not_set = Variable {0} must be set to run task {1}.
- postcondition_failed = Postcondition failed for task {0}.
- precondition_was_false = Precondition was false, not executing task {0}.
- continue_on_error = Error in task {0}. {1}
- build_success = Build Succeeded!
-'@
-}
-
-import-localizeddata -bindingvariable msgs -erroraction silentlycontinue
-
-$script:psake = @{}
-$psake.version = "4.2.0" # contains the current version of psake
-$psake.context = new-object system.collections.stack # holds onto the current state of all variables
-$psake.run_by_psake_build_tester = $false # indicates that build is being run by psake-BuildTester
-$psake.config_default = new-object psobject -property @{
- buildFileName = "default.ps1";
- framework = "4.0";
- taskNameFormat = "Executing {0}";
- verboseError = $false;
- coloredOutput = $true;
- modules = $null;
-} # contains default configuration, can be overriden in psake-config.ps1 in directory with psake.psm1 or in directory with current build script
-
-$psake.build_success = $false # indicates that the current build was successful
-$psake.build_script_file = $null # contains a System.IO.FileInfo for the current build script
-$psake.build_script_dir = "" # contains a string with fully-qualified path to current build script
-
-Load-Configuration
-
-export-modulemember -function invoke-psake, invoke-task, task, properties, include, formattaskname, tasksetup, taskteardown, framework, assert, exec -variable psake
diff --git a/Tools/psake/specs/Modules/ModuleA.psm1 b/Tools/psake/specs/Modules/ModuleA.psm1
deleted file mode 100644
index 6e72c83..0000000
--- a/Tools/psake/specs/Modules/ModuleA.psm1
+++ /dev/null
@@ -1,5 +0,0 @@
-function Execute-ModuleAFunction {
- Execute-ModuleBFunction
-}
-
-Export-ModuleMember -Function "Execute-ModuleAFunction"
\ No newline at end of file
diff --git a/Tools/psake/specs/Modules/ModuleB.psm1 b/Tools/psake/specs/Modules/ModuleB.psm1
deleted file mode 100644
index c35a372..0000000
--- a/Tools/psake/specs/Modules/ModuleB.psm1
+++ /dev/null
@@ -1,4 +0,0 @@
-function Execute-ModuleBFunction {
-}
-
-Export-ModuleMember -Function "Execute-ModuleBFunction"
\ No newline at end of file
diff --git a/Tools/psake/specs/bad_PreAndPostActions_should_fail.ps1 b/Tools/psake/specs/bad_PreAndPostActions_should_fail.ps1
deleted file mode 100644
index facdfb8..0000000
--- a/Tools/psake/specs/bad_PreAndPostActions_should_fail.ps1
+++ /dev/null
@@ -1,11 +0,0 @@
-task default -depends Test
-
-task Test -depends Compile, Clean -PreAction {"Pre-Test"} -PostAction {"Post-Test"}
-
-task Compile -depends Clean {
- "Compile"
-}
-
-task Clean {
- "Clean"
-}
\ No newline at end of file
diff --git a/Tools/psake/specs/calling_invoke-task_should_pass.ps1 b/Tools/psake/specs/calling_invoke-task_should_pass.ps1
deleted file mode 100644
index e986dfd..0000000
--- a/Tools/psake/specs/calling_invoke-task_should_pass.ps1
+++ /dev/null
@@ -1,13 +0,0 @@
-task default -depends A,B
-
-task A {
-}
-
-task B {
- "inside task B before calling task C"
- invoke-task C
- "inside task B after calling task C"
-}
-
-task C {
-}
\ No newline at end of file
diff --git a/Tools/psake/specs/circular_dependency_in_tasks_should_fail.ps1 b/Tools/psake/specs/circular_dependency_in_tasks_should_fail.ps1
deleted file mode 100644
index 9cea08e..0000000
--- a/Tools/psake/specs/circular_dependency_in_tasks_should_fail.ps1
+++ /dev/null
@@ -1,3 +0,0 @@
-task default -depends A
-task A -depends B { }
-task B -depends A { }
diff --git a/Tools/psake/specs/default_task_with_action_should_fail.ps1 b/Tools/psake/specs/default_task_with_action_should_fail.ps1
deleted file mode 100644
index 5d20507..0000000
--- a/Tools/psake/specs/default_task_with_action_should_fail.ps1
+++ /dev/null
@@ -1,5 +0,0 @@
-task default {
- "Starting to do stuff..."
- "Adding stuff... 1 + 1 =" + (1+1)
- "Stuff done!"
-}
\ No newline at end of file
diff --git a/Tools/psake/specs/dotNet4_should_pass.ps1 b/Tools/psake/specs/dotNet4_should_pass.ps1
deleted file mode 100644
index c2f5370..0000000
--- a/Tools/psake/specs/dotNet4_should_pass.ps1
+++ /dev/null
@@ -1,7 +0,0 @@
-$framework = '4.0'
-
-task default -depends MsBuild
-
-task MsBuild {
- exec { msbuild /version }
-}
diff --git a/Tools/psake/specs/duplicate_alias_should_fail.ps1 b/Tools/psake/specs/duplicate_alias_should_fail.ps1
deleted file mode 100644
index 06b1075..0000000
--- a/Tools/psake/specs/duplicate_alias_should_fail.ps1
+++ /dev/null
@@ -1,4 +0,0 @@
-task default
-task A -alias a {}
-task B -alias b {}
-task C -alias a {}
\ No newline at end of file
diff --git a/Tools/psake/specs/duplicate_tasks_should_fail.ps1 b/Tools/psake/specs/duplicate_tasks_should_fail.ps1
deleted file mode 100644
index f21c77a..0000000
--- a/Tools/psake/specs/duplicate_tasks_should_fail.ps1
+++ /dev/null
@@ -1,3 +0,0 @@
-task A {}
-task B {}
-task A {}
\ No newline at end of file
diff --git a/Tools/psake/specs/executing_module_function_that_depends_on_another_module_should_work.ps1 b/Tools/psake/specs/executing_module_function_that_depends_on_another_module_should_work.ps1
deleted file mode 100644
index 64d0b35..0000000
--- a/Tools/psake/specs/executing_module_function_that_depends_on_another_module_should_work.ps1
+++ /dev/null
@@ -1,5 +0,0 @@
-task default -depends test
-
-task test {
- Execute-ModuleAFunction
-}
\ No newline at end of file
diff --git a/Tools/psake/specs/explicitly_specified_32bit_build_should_pass.ps1 b/Tools/psake/specs/explicitly_specified_32bit_build_should_pass.ps1
deleted file mode 100644
index bda606d..0000000
--- a/Tools/psake/specs/explicitly_specified_32bit_build_should_pass.ps1
+++ /dev/null
@@ -1,7 +0,0 @@
-$framework = '3.5x86'
-
-task default -depends MsBuild
-
-task MsBuild {
- exec { msbuild /version }
-}
diff --git a/Tools/psake/specs/failing_postcondition_should_fail.ps1 b/Tools/psake/specs/failing_postcondition_should_fail.ps1
deleted file mode 100644
index 70f12f1..0000000
--- a/Tools/psake/specs/failing_postcondition_should_fail.ps1
+++ /dev/null
@@ -1,13 +0,0 @@
-task default -depends A,B,C
-
-task A {
- "TaskA"
-}
-
-task B -postcondition { return $false } {
- "TaskB"
-}
-
-task C {
- "TaskC"
-}
\ No newline at end of file
diff --git a/Tools/psake/specs/missing_task_should_fail.ps1 b/Tools/psake/specs/missing_task_should_fail.ps1
deleted file mode 100644
index 587d89d..0000000
--- a/Tools/psake/specs/missing_task_should_fail.ps1
+++ /dev/null
@@ -1,5 +0,0 @@
-task default -depends Test
-
-task Test -depends Compile, Clean {
- Write-Host "Running PSake"
-}
diff --git a/Tools/psake/specs/multiline_blocks_should_pass.ps1 b/Tools/psake/specs/multiline_blocks_should_pass.ps1
deleted file mode 100644
index 9ac8925..0000000
--- a/Tools/psake/specs/multiline_blocks_should_pass.ps1
+++ /dev/null
@@ -1,6 +0,0 @@
-task default -depends doStuff
-task doStuff {
- "Starting to do stuff..."
- "Adding stuff... 1 + 1 =" + (1+1)
- "Stuff done!"
-}
\ No newline at end of file
diff --git a/Tools/psake/specs/nested/nested1.ps1 b/Tools/psake/specs/nested/nested1.ps1
deleted file mode 100644
index 81790ec..0000000
--- a/Tools/psake/specs/nested/nested1.ps1
+++ /dev/null
@@ -1 +0,0 @@
-Properties {
$x = 100
}
Task default -Depends Nested1CheckX
Task Nested1CheckX{
Assert ($x -eq 100) '$x was not 100'
}
\ No newline at end of file
diff --git a/Tools/psake/specs/nested/nested2.ps1 b/Tools/psake/specs/nested/nested2.ps1
deleted file mode 100644
index 7a4a2b8..0000000
--- a/Tools/psake/specs/nested/nested2.ps1
+++ /dev/null
@@ -1 +0,0 @@
-Properties {
$x = 200
}
Task default -Depends Nested2CheckX
Task Nested2CheckX{
Assert ($x -eq 200) '$x was not 200'
}
\ No newline at end of file
diff --git a/Tools/psake/specs/nested_builds_should_pass.ps1 b/Tools/psake/specs/nested_builds_should_pass.ps1
deleted file mode 100644
index 36fc830..0000000
--- a/Tools/psake/specs/nested_builds_should_pass.ps1
+++ /dev/null
@@ -1,17 +0,0 @@
-Properties {
- $x = 1
-}
-
-Task default -Depends RunNested1, RunNested2, CheckX
-
-Task RunNested1 {
- Invoke-psake .\nested\nested1.ps1
-}
-
-Task RunNested2 {
- Invoke-psake .\nested\nested2.ps1
-}
-
-Task CheckX{
- Assert ($x -eq 1) '$x was not 1'
-}
\ No newline at end of file
diff --git a/Tools/psake/specs/running_aspnet_compiler_under_dotNet35_should_pass.ps1 b/Tools/psake/specs/running_aspnet_compiler_under_dotNet35_should_pass.ps1
deleted file mode 100644
index a00c572..0000000
--- a/Tools/psake/specs/running_aspnet_compiler_under_dotNet35_should_pass.ps1
+++ /dev/null
@@ -1,10 +0,0 @@
-$framework = '3.5'
-
-task default -depends AspNetCompiler
-
-task AspNetCompiler {
- aspnet_compiler
- if ($LastExitCode -ne 1) {
- throw 'Error: Could not execute aspnet_compiler'
- }
-}
\ No newline at end of file
diff --git a/Tools/psake/specs/simple_properties_and_tasks_should_pass.ps1 b/Tools/psake/specs/simple_properties_and_tasks_should_pass.ps1
deleted file mode 100644
index cd5d71f..0000000
--- a/Tools/psake/specs/simple_properties_and_tasks_should_pass.ps1
+++ /dev/null
@@ -1,19 +0,0 @@
-properties {
- $testMessage = 'Executed Test!'
- $compileMessage = 'Executed Compile!'
- $cleanMessage = 'Executed Clean!'
-}
-
-task default -depends Test
-
-task Test -depends Compile, Clean {
- $testMessage
-}
-
-task Compile -depends Clean {
- $compileMessage
-}
-
-task Clean {
- $cleanMessage
-}
\ No newline at end of file
diff --git a/Tools/psake/specs/task_with_alias_and_dependencies_should_pass.ps1 b/Tools/psake/specs/task_with_alias_and_dependencies_should_pass.ps1
deleted file mode 100644
index 3443e62..0000000
--- a/Tools/psake/specs/task_with_alias_and_dependencies_should_pass.ps1
+++ /dev/null
@@ -1,5 +0,0 @@
-task default -depends Task_With_Alias
-
-task Task_With_Alias -depends Task_Dependency -alias twa {}
-
-task Task_Dependency {}
\ No newline at end of file
diff --git a/Tools/psake/specs/task_with_alias_should_pass.ps1 b/Tools/psake/specs/task_with_alias_should_pass.ps1
deleted file mode 100644
index 9a1df2d..0000000
--- a/Tools/psake/specs/task_with_alias_should_pass.ps1
+++ /dev/null
@@ -1,3 +0,0 @@
-task Task_With_Big_Descriptve_Name -alias twbdn {
- "Doing stuff inside task with alias"
-}
\ No newline at end of file
diff --git a/Tools/psake/specs/tasksetup_should_pass.ps1 b/Tools/psake/specs/tasksetup_should_pass.ps1
deleted file mode 100644
index 46fb278..0000000
--- a/Tools/psake/specs/tasksetup_should_pass.ps1
+++ /dev/null
@@ -1,17 +0,0 @@
-TaskSetup {
- "executing task setup"
-}
-
-Task default -depends Compile, Test, Deploy
-
-Task Compile {
- "Compiling"
-}
-
-Task Test -depends Compile {
- "Testing"
-}
-
-Task Deploy -depends Test {
- "Deploying"
-}
\ No newline at end of file
diff --git a/Tools/psake/specs/using_PreAndPostActions_should_pass.ps1 b/Tools/psake/specs/using_PreAndPostActions_should_pass.ps1
deleted file mode 100644
index fcb36e6..0000000
--- a/Tools/psake/specs/using_PreAndPostActions_should_pass.ps1
+++ /dev/null
@@ -1,13 +0,0 @@
-task default -depends Test
-
-task Test -depends Compile, Clean -PreAction {"Pre-Test"} -Action {
- "Test"
-} -PostAction {"Post-Test"}
-
-task Compile -depends Clean {
- "Compile"
-}
-
-task Clean {
- "Clean"
-}
\ No newline at end of file
diff --git a/Tools/psake/specs/using_initialization_block_should_pass.ps1 b/Tools/psake/specs/using_initialization_block_should_pass.ps1
deleted file mode 100644
index 1e71165..0000000
--- a/Tools/psake/specs/using_initialization_block_should_pass.ps1
+++ /dev/null
@@ -1,23 +0,0 @@
-properties {
- $container = @{}
- $container.foo = "foo"
- $container.bar = $null
- $foo = 1
- $bar = 1
-}
-
-task default -depends TestInit
-
-task TestInit {
- # values are:
- # 1: original
- # 2: overide
- # 3: new
-
- Assert ($container.foo -eq "foo") "$container.foo should be foo"
- Assert ($container.bar -eq "bar") "$container.bar should be bar"
- Assert ($container.baz -eq "baz") "$container.baz should be baz"
- Assert ($foo -eq 1) "$foo should be 1"
- Assert ($bar -eq 2) "$bar should be 2"
- Assert ($baz -eq 3) "$baz should be 3"
-}
\ No newline at end of file
diff --git a/Tools/psake/specs/using_msbuild_should_pass.ps1 b/Tools/psake/specs/using_msbuild_should_pass.ps1
deleted file mode 100644
index 72fbc77..0000000
--- a/Tools/psake/specs/using_msbuild_should_pass.ps1
+++ /dev/null
@@ -1,4 +0,0 @@
-task default -depends DisplayNotice
-task DisplayNotice {
- exec { msbuild /version }
-}
\ No newline at end of file
diff --git a/Tools/psake/specs/using_parameters_should_pass.ps1 b/Tools/psake/specs/using_parameters_should_pass.ps1
deleted file mode 100644
index 63c7e12..0000000
--- a/Tools/psake/specs/using_parameters_should_pass.ps1
+++ /dev/null
@@ -1,9 +0,0 @@
-properties {
- $my_property = $p1 + $p2
-}
-
-task default -depends TestParams
-
-task TestParams {
- Assert ($my_property -ne $null) '$my_property should not be null'
-}
\ No newline at end of file
diff --git a/Tools/psake/specs/using_postcondition_should_pass.ps1 b/Tools/psake/specs/using_postcondition_should_pass.ps1
deleted file mode 100644
index 0173c5b..0000000
--- a/Tools/psake/specs/using_postcondition_should_pass.ps1
+++ /dev/null
@@ -1,13 +0,0 @@
-task default -depends A,B,C
-
-task A {
- "TaskA"
-}
-
-task B -postcondition { return $true } {
- "TaskB"
-}
-
-task C {
- "TaskC"
-}
\ No newline at end of file
diff --git a/Tools/psake/specs/using_precondition_should_pass.ps1 b/Tools/psake/specs/using_precondition_should_pass.ps1
deleted file mode 100644
index 8be98a6..0000000
--- a/Tools/psake/specs/using_precondition_should_pass.ps1
+++ /dev/null
@@ -1,13 +0,0 @@
-task default -depends A,B,C
-
-task A {
- "TaskA"
-}
-
-task B -precondition { return $false } {
- "TaskB"
-}
-
-task C -precondition { return $true } {
- "TaskC"
-}
\ No newline at end of file
diff --git a/Tools/psake/specs/using_properties_should_pass.ps1 b/Tools/psake/specs/using_properties_should_pass.ps1
deleted file mode 100644
index eb758c1..0000000
--- a/Tools/psake/specs/using_properties_should_pass.ps1
+++ /dev/null
@@ -1,13 +0,0 @@
-properties {
- $x = $null
- $y = $null
- $z = $null
-}
-
-task default -depends TestProperties
-
-task TestProperties {
- Assert ($x -ne $null) "x should not be null"
- Assert ($y -ne $null) "y should not be null"
- Assert ($z -eq $null) "z should be null"
-}
\ No newline at end of file
diff --git a/Tools/psake/specs/using_required_when_not_set_should_fail.ps1 b/Tools/psake/specs/using_required_when_not_set_should_fail.ps1
deleted file mode 100644
index e7cc422..0000000
--- a/Tools/psake/specs/using_required_when_not_set_should_fail.ps1
+++ /dev/null
@@ -1,10 +0,0 @@
-properties {
- $x = $null
- $y = $null
- $z = $null
-}
-
-task default -depends TestProperties
-
-task TestProperties -requiredVariables z{
-}
diff --git a/Tools/psake/specs/using_required_when_set_should_pass.ps1 b/Tools/psake/specs/using_required_when_set_should_pass.ps1
deleted file mode 100644
index 9857045..0000000
--- a/Tools/psake/specs/using_required_when_set_should_pass.ps1
+++ /dev/null
@@ -1,9 +0,0 @@
-properties {
- $x = $null
- $y = $null
-}
-
-task default -depends TestRequired
-
-task TestRequired -requiredVariables x, y {
-}
diff --git a/Tools/psake/specs/writing_psake_variables_should_pass.ps1 b/Tools/psake/specs/writing_psake_variables_should_pass.ps1
deleted file mode 100644
index aee5f3f..0000000
--- a/Tools/psake/specs/writing_psake_variables_should_pass.ps1
+++ /dev/null
@@ -1,34 +0,0 @@
-properties {
- $x = 1
-}
-
-task default -depends Verify
-
-task Verify -description "This task verifies psake's variables" {
-
- #Verify the exported module variables
- cd variable:
- Assert (Test-Path "psake") "variable psake was not exported from module"
-
- Assert ($psake.ContainsKey("build_success")) "'psake' variable does not contain key 'build_success'"
- Assert ($psake.ContainsKey("version")) "'psake' variable does not contain key 'version'"
- Assert ($psake.ContainsKey("build_script_file")) "'psake' variable does not contain key 'build_script_file'"
- Assert ($psake.ContainsKey("build_script_dir")) "'psake' variable does not contain key 'build_script_dir'"
-
- Assert (!$psake.build_success) '$psake.build_success should be $false'
- Assert ($psake.version) '$psake.version was null or empty'
- Assert ($psake.build_script_file) '$psake.build_script_file was null'
- Assert ($psake.build_script_file.Name -eq "writing_psake_variables_should_pass.ps1") '$psake.build_script_file.Name was not equal to "writing_psake_variables_should_pass.ps1"'
- Assert ($psake.build_script_dir) '$psake.build_script_dir was null or empty'
-
- Assert ($psake.context.Count -eq 1) '$psake.context should have had a length of one (1) during script execution'
-
- $config = $psake.context.peek().config
- Assert ($config) '$psake.config is $null'
- Assert ((new-object "System.IO.FileInfo" $config.buildFileName).FullName -eq $psake.build_script_file.FullName) ('$psake.context.peek().config.buildFileName not equal to "{0}"' -f $psake.build_script_file.FullName)
- Assert ($config.framework -eq "3.5") '$psake.context.peek().config.framework not equal to "3.5"'
- Assert ($config.taskNameFormat -eq "Executing {0}") '$psake.context.peek().config.taskNameFormat not equal to "Executing {0}"'
- Assert (!$config.verboseError) '$psake.context.peek().config.verboseError should be $false'
- Assert ($config.coloredOutput) '$psake.context.peek().config.coloredOutput should be $false'
- Assert ($config.modules -eq $null) '$psake.context.peek().config.modules is not $null'
-}
\ No newline at end of file
diff --git a/Tools/psake/tabexpansion/PsakeTabExpansion.ps1 b/Tools/psake/tabexpansion/PsakeTabExpansion.ps1
deleted file mode 100644
index e5a45a2..0000000
--- a/Tools/psake/tabexpansion/PsakeTabExpansion.ps1
+++ /dev/null
@@ -1,31 +0,0 @@
-$global:psakeSwitches = @('-docs', '-task', '-properties', '-parameters')
-
-function script:psakeSwitches($filter) {
- $psakeSwitches | where { $_ -like "$filter*" }
-}
-
-function script:psakeDocs($filter, $file) {
- if ($file -eq $null -or $file -eq '') { $file = 'default.ps1' }
- psake $file -docs | out-string -Stream |% { if ($_ -match "^[^ ]*") { $matches[0]} } |? { $_ -ne "Name" -and $_ -ne "----" -and $_ -like "$filter*" }
-}
-
-function script:psakeFiles($filter) {
- ls "$filter*.ps1" |% { $_.Name }
-}
-
-function PsakeTabExpansion($lastBlock) {
- switch -regex ($lastBlock) {
- '(invoke-psake|psake) ([^\.]*\.ps1)? ?.* ?\-ta?s?k? (\S*)$' { # tasks only
- psakeDocs $matches[3] $matches[2] | sort
- }
- '(invoke-psake|psake) ([^\.]*\.ps1)? ?.* ?(\-\S*)$' { # switches only
- psakeSwitches $matches[3] | sort
- }
- '(invoke-psake|psake) ([^\.]*\.ps1) ?.* ?(\S*)$' { # switches or tasks
- @(psakeDocs $matches[3] $matches[2]) + @(psakeSwitches $matches[3]) | sort
- }
- '(invoke-psake|psake) (\S*)$' {
- @(psakeFiles $matches[2]) + @(psakeDocs $matches[2] 'default.ps1') + @(psakeSwitches $matches[2]) | sort
- }
- }
-}
diff --git a/Tools/psake/tabexpansion/Readme.PsakeTab.txt b/Tools/psake/tabexpansion/Readme.PsakeTab.txt
deleted file mode 100644
index 51d5c3f..0000000
--- a/Tools/psake/tabexpansion/Readme.PsakeTab.txt
+++ /dev/null
@@ -1,39 +0,0 @@
-_________________________________________________________
-A powershell script for tab completion of psake module build commands
- - tab completion for file name: psake d -> psake .\default.ps1
- - tab completion for parameters (docs,task,parameters,properties): psake -t -> psake -task
- - tab completion for task: psake -t c -> psake -task Clean
----------------------------------------------------------
-
-_________________________________________________________
-Profile example
----------------------------------------------------------
-Push-Location (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent)
-. ./PsakeTabExpansion.ps1
-Pop-Location
-
-if(-not (Test-Path Function:\DefaultTabExpansion)) {
- Rename-Item Function:\TabExpansion DefaultTabExpansion
-}
-
-# Set up tab expansion and include psake expansion
-function TabExpansion($line, $lastWord) {
- $lastBlock = [regex]::Split($line, '[|;]')[-1]
-
- switch -regex ($lastBlock) {
- # Execute psake tab completion for all psake-related commands
- '(Invoke-psake|psake) (.*)' { PsakeTabExpansion $lastBlock }
- # Fall back on existing tab expansion
- default { DefaultTabExpansion $line $lastWord }
- }
-}
----------------------------------------------------------
-
-_________________________________________________________
-Based on work by:
-
- - Keith Dahlby, http://solutionizing.net/
- - Mark Embling, http://www.markembling.info/
- - Jeremy Skinner, http://www.jeremyskinner.co.uk/
- - Dusty Candland, http://www.candland.net/blog
----------------------------------------------------------
diff --git a/Web/Content/Site.css b/Web/Content/Site.css
deleted file mode 100644
index 6f3f7ee..0000000
--- a/Web/Content/Site.css
+++ /dev/null
@@ -1,344 +0,0 @@
-/*----------------------------------------------------------
-The base color for this template is #5c87b2. If you'd like
-to use a different color start by replacing all instances of
-#5c87b2 with your new color.
-----------------------------------------------------------*/
-body
-{
- background-color: #5c87b2;
- font-size: .75em;
- font-family: Verdana, Helvetica, Sans-Serif;
- margin: 0;
- padding: 0;
- color: #696969;
-}
-
-a:link
-{
- color: #034af3;
- text-decoration: underline;
-}
-a:visited
-{
- color: #505abc;
-}
-a:hover
-{
- color: #1d60ff;
- text-decoration: none;
-}
-a:active
-{
- color: #12eb87;
-}
-
-p, ul
-{
- margin-bottom: 20px;
- line-height: 1.6em;
-}
-
-/* HEADINGS
-----------------------------------------------------------*/
-h1, h2, h3, h4, h5, h6
-{
- font-size: 1.5em;
- color: #000;
- font-family: Arial, Helvetica, sans-serif;
-}
-
-h1
-{
- font-size: 2em;
- padding-bottom: 0;
- margin-bottom: 0;
-}
-h2
-{
- padding: 0 0 10px 0;
-}
-h3
-{
- font-size: 1.2em;
-}
-h4
-{
- font-size: 1.1em;
-}
-h5, h6
-{
- font-size: 1em;
-}
-
-/* this rule styles