DevInstinct Application Framework

Copyright (c) DevInstinct inc. All rights reserved.

E-mail DevInstinct

Namespace List

The namespaces specified in this document are:

NamespaceAssembly
DevInstinct.XmlDevInstinct
DevInstinctDevInstinct
DevInstinct.ParsingDevInstinct
DevInstinct.Threading.SamplesDevInstinct
DevInstinct.ThreadingDevInstinct
DevInstinct.IODevInstinct
DevInstinct.ConfigurationDevInstinct
DevInstinct.CollectionsDevInstinct
DevInstinct.ExternalLibraries.ExpressionEvaluationDevInstinct
DevInstinct.SoaDevInstinct
DevInstinct.Web.Services.ProtocolsDevInstinct
DevInstinct.Soa.ErrorCodesDevInstinct
DevInstinct.DiagnosticsDevInstinct
DevInstinct.IsoDevInstinct
DevInstinct.Xml.SerializationDevInstinct
DevInstinct.CachingDevInstinct
DevInstinct.WebDevInstinct
DevInstinct.ResourcesDevInstinct
DevInstinct.PatternsDevInstinct
DevInstinct.Resources.ToolsDevInstinct.Resources.Tools
DevInstinct.ResourcesDevInstinct.Resources.Tools

Namespace : DevInstinct.Web



DevInstinct.Web Type List

Classes

TypeSummary
HttpResponseUtil Utility methods for HTTP response.


DevInstinct.Web Classes

HttpResponseUtil Class

Summary

public abstract class HttpResponseUtil

Utility methods for HTTP response.

Remarks

Utility methods for HTTP response.

Method Members

NameAccessSummary
EndResponse() : Voidpublic Ends the given http response.
GetResponse() : HttpResponsepublic Gets the HttpResponse of the current context.
PrepareResponse() : Voidpublic Clears the given http response and sets the content type.
WriteFile() : Voidpublic Properly writes a file to the response stream.
WriteObject() : Voidpublic Properly serializes an object, with XmlSerializer, to the response stream.
WriteTypeSchema() : Voidpublic Properly serializes a type's xml schema to the response stream.

Namespace : DevInstinct.Resources



DevInstinct.Resources Type List

Classes

TypeSummary
GlobalResourceManager Manages resources system-wide for all types.

Classes

TypeSummary
ResXDataReader Reads ResXDataNode entries from a resource file.


DevInstinct.Resources Classes

GlobalResourceManager Class

Summary

public abstract class GlobalResourceManager

Manages resources system-wide for all types.

Remarks

Manages resources system-wide for all types.

Method Members

NameAccessSummary
GetManifestResourceStream() : Streampublic Loads the specified manifest resource from the calling assembly, in the calling method declaring type's namespace.
GetString() : Stringpublic Gets the value of the object-specified String resource for the current culture.
GetString() : Stringpublic Gets the value of the object-specified formatted resource for the current culture.
GetString() : Stringpublic Gets the value of the specified String resource for the current culture.
GetString() : Stringpublic Gets the value of the specified formatted resource for the current culture.

ResXDataReader Class

Summary

public class ResXDataReader

Reads ResXDataNode entries from a resource file.

Remarks

Reads ResXDataNode entries from a resource file.

Method Members

NameAccessSummary
GetDictionaryFromContent() : ResXDataNode}public Returns a dictionary of string resources built from the given resource file content.
GetDictionaryFromContent() : ResXDataNode}public Returns a dictionary of string resources built from the given resource file content.
GetDictionaryFromFile() : ResXDataNode}public Returns a dictionary of string resources built from the given resource file.
IsLocalizedFile() : Booleanpublic Returns true if the given file name is a localized resource file name.

Namespace : DevInstinct.Collections



DevInstinct.Collections Type List

Enumerations

TypeSummary
CollectionEvents Specifies the events that can be raised by a dynamic collection.

Delegates

TypeSummary
CollectionEventHandler Represents the method that will handle collection events.
CollectionExceptionEventHandler<> Represents the method that will handle collection events.

Classes

TypeSummary
ArrayUtil Offers extended array functionalities.
IndexedList<> Implements an indexed list.
ListComparer Compares two lists for equivalence.
ListEvent<> Implements the Generic IList interface using an array whose size is dynamically increased as required and provides events for list changes. The CLS-compliant alternative is ArrayList.
SetCollection<> Represents a strongly-typed collection of objects that can be used in set operations.
SimplePair<> Represents a pair of elements.


DevInstinct.Collections Enumerations

CollectionEvents Enumeration

Summary

public enumeration CollectionEvents

Specifies the events that can be raised by a dynamic collection.

Remarks

Specifies the events that can be raised by a dynamic collection.

Enumeration Members

FieldSummary
Cleared All the elements have been removed from the collection.
ElementAdded An element has been added to the collection.
ElementRemoved An element has been removed from the collection.
Reordered The elements have been reordered in the collection.


DevInstinct.Collections Delegates

CollectionEventHandler Delegate

Summary

public delegate CollectionEventHandler

Represents the method that will handle collection events.

Remarks

Collection events that occured.

CollectionExceptionEventHandler<> Delegate

Summary

public delegate CollectionExceptionEventHandler<>

Represents the method that will handle collection events.

Remarks

The item that caused the exception.



DevInstinct.Collections Classes

ArrayUtil Class

Summary

public abstract class ArrayUtil

Offers extended array functionalities.

Remarks

Offers extended array functionalities.

Method Members

NameAccessSummary
CreateArray() : <>[]public Creates an array of initialized objects.

ListEvent<> Class

Summary

public class ListEvent<> : List, System.Collections.Generic.IList<>, System.Collections.Generic.ICollection<>, System.Collections.Generic.IEnumerable<>, System.Collections.IEnumerable, System.Collections.IList, System.Collections.ICollection

Implements the Generic IList interface using an array whose size is dynamically increased as required and provides events for list changes. The CLS-compliant alternative is ArrayList.

Remarks

The type of the items in the list.

Constructor Members

NameAccessSummary
ListEvent<>()publicInitializes a new instance of the class.

Property Members

NameAccessSummary
Item : <>public Gets or sets the element at the specified index and raises the CollectionEvents.ElementAdded event if an element is set.

Method Members

NameAccessSummary
Add() : Voidpublic Adds an object to the end of the Generic List and raises the CollectionEvents.ElementAdded event.
AddRange() : Voidpublic Adds the elements of the specified collection to the end of the Generic List and raises the CollectionEvents.ElementAdded event.
Clear() : Voidpublic Removes all elements from the Generic Listand raises the CollectionEvents.Cleared event.
Insert() : Voidpublic Inserts an element into the Generic List at the specified index and raises the CollectionEvents.ElementAdded event.
InsertRange() : Voidpublic Inserts the elements of a collection into the Generic List at the specified index and raises the CollectionEvents.ElementAdded event.
Remove() : Booleanpublic Removes the first occurrence of a specific object from the Generic List and raises the CollectionEvents.ElementRemoved event.
RemoveAll() : Int32public Removes the all the elements that match the conditions defined by the specified predicate and raises the CollectionEvents.ElementRemoved event.
RemoveAt() : Voidpublic Removes the element at the specified index of the Generic List and raises the CollectionEvents.ElementRemoved event.
RemoveRange() : Voidpublic Removes a range of elements from the Generic List and raises the CollectionEvents.ElementRemoved event.
Reverse() : Voidpublic Reverses the order of the elements in the entire Generic List and raises the CollectionEvents.Reordered event.
Reverse() : Voidpublic Reverses the order of the elements in the specified range and raises the CollectionEvents.Reordered event.
Sort() : Voidpublic Sorts the elements in the entire Generic List using the default comparer and raises the CollectionEvents.Reordered event.
Sort() : Voidpublic Sorts the elements in the entire Generic List using the specified comparer and raises the CollectionEvents.Reordered event.
Sort() : Voidpublic Sorts the elements in the entire Generic List using the specified Generic System.Comparison and raises the CollectionEvents.Reordered event.
Sort() : Voidpublic Sorts the elements in a range of elements in Generic List using the specified comparer and raises the CollectionEvents.Reordered event.

IndexedList<> Class

Summary

public class IndexedList<> : System.Collections.Generic.ICollection<>, System.Collections.Generic.IEnumerable<>, System.Collections.IEnumerable

Implements an indexed list.

Remarks

The items in the list must implement the IKeyElement interface and have unique keys.

Constructor Members

NameAccessSummary
IndexedList<>()publicInitializes a new instance of the class.

Property Members

NameAccessSummary
Count : Int32public Gets the number of elements contained in the indexed list.
IsReadOnly : Booleanpublic Gets a value indicating whether the indexed list is read-only.
Item : <>public Gets the value associated with the specified key.

Method Members

NameAccessSummary
Add() : Voidpublic Adds an item to the collection.
Add() : Voidpublic Adds an item to the collection.
Clear() : Voidpublic Removes all items from the indexed list.
Contains() : Booleanpublic Determines whether the indexed list contains a specific value.
ContainsKey() : Booleanpublic Determines whether the IndexedList contains the specified key.
CopyTo() : Voidpublic Copies the elements of the indexed list to an Array, starting at a particular Array index.
GetEnumerator() : IEnumerator{<>}public Returns an enumerator that iterates through the collection.
Remove() : Booleanpublic Removes the given item from the indexed list.

ListComparer Class

Summary

public class ListComparer : System.Collections.IComparer

Compares two lists for equivalence.

Remarks

See the .NET class Comparer.

Constructor Members

NameAccessSummary
ListComparer()publicInitializes a new instance of the class.

Property Members

NameAccessSummary
Default : ListComparerpublic Represents an instance of ListComparer that is associated with the Thread.CurrentCulture of the current thread.

Method Members

NameAccessSummary
Compare() : Int32public Performs a case-sensitive comparison of two lists of implementing the IList interface and returns a value indicating whether one is less than, equal to or greater than the other.

SetCollection<> Class

Summary

public class SetCollection<> : System.Collections.Generic.ICollection<>, System.Collections.Generic.IEnumerable<>, System.Collections.IEnumerable

Represents a strongly-typed collection of objects that can be used in set operations.

Remarks

The collections used by the set and set operations are expected to contain unique values. Collections with duplicate values may have duplicate values in set operation results.

Constructor Members

NameAccessSummary
SetCollection<>()public Constructor.
SetCollection<>()public Constructor.

Property Members

NameAccessSummary
Count : Int32public Gets the number of elements contained in the set.
IsReadOnly : Booleanpublic Gets a value indicating whether the set is read-only.

Method Members

NameAccessSummary
Add() : Voidpublic Adds an item to the set.
Clear() : Voidpublic Removes all items from the set.
Contains() : Booleanpublic Determines whether the set contains a specific value.
CopyTo() : Voidpublic Copies the elements of the set to a System.Array, starting at a particular System.Array index.
GetComplement() : IList{<>}public Returns the items of the given collection that are not in this set.
GetDifference() : IList{<>}public Returns the items of this set that are not in the given collection.
GetEnumerator() : IEnumerator{<>}public Returns an enumerator that iterates through the collection.
GetIntersection() : IList{<>}public Returns the items of this set that are also in the given collection.
GetUnion() : IList{<>}public Returns the items of this set and the items of the given collection.
Remove() : Booleanpublic Removes the first occurrence of a specific item from the set.

SimplePair<> Class

Summary

public class SimplePair<> : System.IComparable, System.IComparable<>, System.IEquatable<>

Represents a pair of elements.

Remarks

The type of the second element of the pair.

Constructor Members

NameAccessSummary
SimplePair<>()public Constructor.

Property Members

NameAccessSummary
First : <>public Gets the first element of the pair.
Second : <>public Gets the second element of the pair.

Method Members

NameAccessSummary
CompareTo() : Int32public Compares the current object with another object of the same type.
CompareTo() : Int32public Compares this instance to a specified object and returns an indication of their relative values.
Equals() : Booleanpublic Indicates whether the current object is equal to another object of the same type.
Equals() : Booleanpublic Determines whether the specified object is equal to the current object.
GetHashCode() : Int32public Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
ToString() : Stringpublic Converts the value of this instance to its equivalent string representation.

Namespace : DevInstinct.Threading



DevInstinct.Threading Type List

Enumerations

TypeSummary
Job.JobStatus Job status.

Delegates

TypeSummary
JobDispatcher.JobDispatcherEventHandler Delegate for the job dispatcher events.

Classes

TypeSummary
Job Base class for jobs.
JobDispatcher Base class for job dispatchers.
JobPool Simple job pool.


DevInstinct.Threading Enumerations

Job.JobStatus Enumeration

Summary

nestedPublic enumeration Job.JobStatus

Job status.

Remarks

Job status.

Enumeration Members

FieldSummary
Aborted The job has been aborted.
Completed The job completed successfully.
Pending The job is waiting to be processed.
Retrying The job is in retrying.
Running The job is currently running.


DevInstinct.Threading Delegates

JobDispatcher.JobDispatcherEventHandler Delegate

Summary

nestedPublic delegate JobDispatcher.JobDispatcherEventHandler

Delegate for the job dispatcher events.

Remarks

Delegate for the job dispatcher events.



DevInstinct.Threading Classes

JobDispatcher Class

Summary

public abstract class JobDispatcher

Base class for job dispatchers.

Remarks

Manages the job dispatcher lifecycle.

Constructor Members

NameAccessSummary
JobDispatcher()public Constructor.

Field Members

NameAccessSummary
_dispatcherCategory : Stringprotected The category of the dispatcher used for tracing.
_dispatcherSwitch : TraceSwitchprotected The trace switch used for tracing.
_jobPool : JobPoolprotected The job pool associated with this dispatcher.

Property Members

NameAccessSummary
AreJobsSuspended : Booleanpublic Gets wether job dispatching is suspended or not.
IsRunning : Booleanpublic Gets wether the job dispatcher is running or not.
NbMaxConcurrentJobs : Int32protected Gets the maximum number of concurrent jobs.
NbMaxRetries : Int32protected Gets the maximum number of retries for a job.
RetryTimeSpan : Int32protected Gets the time span the dispatcher must wait before retrying a job that has failed.
WaitTimeSpan : Int32protected Gets the time span the dispatcher must wait when there is nothing to do.

Method Members

NameAccessSummary
AddJob() : Voidpublic Adds a job to be handled by this dispatcher.
ExecuteJob() : Voidprotected Called when a job must be executed by the dispatcher.
OnAbortJob() : Voidprotected Called when a job is aborted by the dispatcher.
OnDispatchJobs() : Voidprotected Called before dispatching jobs.
OnPreStart() : Voidprotected Called before the dispatcher starts.
PauseJobs() : Voidpublic Pauses the dispatching of jobs.
Restart() : Voidprotected Restarts the job dispatcher.
ResumeJobs() : Voidpublic Resumes the dispatching of jobs.
ShutDown() : Voidpublic Shuts down the dispatcher without blocking.
Start() : Voidpublic Starts the job dispatcher.
Stop() : Booleanpublic Stops the job dispatcher.
WakeUp() : Voidpublic Forces the job dispatcher to wake up if it is sleeping.

Job Class

Summary

public class Job

Base class for jobs.

Remarks

Base class for jobs.

Constructor Members

NameAccessSummary
Job()public Constructor.

Property Members

NameAccessSummary
Data : Objectpublic Gets the data associated with this job.
LastException : Exceptionpublic Gets or sets the last exception caused by this job.
Status : JobStatuspublic Gets or sets the status of this job.

Method Members

NameAccessSummary

JobPool Class

Summary

public class JobPool : System.Collections.IEnumerable

Simple job pool.

Remarks

Simple job pool.

Constructor Members

NameAccessSummary
JobPool()publicInitializes a new instance of the class.

Property Members

NameAccessSummary
Count : Int32public Gets the numbers of jobs in the pool.

Method Members

NameAccessSummary
AddJob() : Voidpublic Adds a job to the pool.
Contains() : Booleanpublic Determines whether the pool contains a specific job.
GetEnumerator() : IEnumeratorpublic Returns an enumerator that iterates through the pool.
GetNextJob() : Jobpublic Returns the next job and removes it from the pool.
HasJobs() : Booleanpublic Returns true if there is at least one job in the pool, false otherwise.

Namespace : DevInstinct.ExternalLibraries.ExpressionEvaluation



DevInstinct.ExternalLibraries.ExpressionEvaluation Type List

Interfaces

TypeSummary
IExpression This interface is the base for all of the expression evaluation objects.

Delegates

TypeSummary
AdditionalFunctionEventHandler

Classes

TypeSummary
AdditionalFunctionEventArgs Event Handling for Additional Functions
ExpressionEval This class will evaluate boolean and mathmatical expressions
FunctionEval This class provides functionality for evaluating functions


DevInstinct.ExternalLibraries.ExpressionEvaluation Interfaces

IExpression Interface

Summary

public interface IExpression

This interface is the base for all of the expression evaluation objects.

Remarks

This interface is the base for all of the expression evaluation objects.

Property Members

NameAccessSummary
Expression : Stringpublic

Method Members

NameAccessSummary
Evaluate() : Objectpublic


DevInstinct.ExternalLibraries.ExpressionEvaluation Delegates

AdditionalFunctionEventHandler Delegate

Summary

public delegate AdditionalFunctionEventHandler



DevInstinct.ExternalLibraries.ExpressionEvaluation Classes

AdditionalFunctionEventArgs Class

Summary

public class AdditionalFunctionEventArgs : EventArgs

Event Handling for Additional Functions

Remarks

Event Handling for Additional Functions

Constructor Members

NameAccessSummary
AdditionalFunctionEventArgs()public This is the only constructor

Property Members

NameAccessSummary
FunctionFound : Booleanpublic If false, this property will cause an exception to be thrown due to the function not being known be the evaluator.
Name : Stringpublic This is the name of the additional function
ReturnValue : Objectpublic The return value of the custom function. This routine will automatically set FunctionFound to true if ReturnValue != null;

Method Members

NameAccessSummary
GetParameters() : Object[]public This method will return an array of objects that are parameters.

FunctionEval Class

Summary

public class FunctionEval : DevInstinct.ExternalLibraries.ExpressionEvaluation.IExpression

This class provides functionality for evaluating functions

Remarks

This class provides functionality for evaluating functions

Constructor Members

NameAccessSummary
FunctionEval()public Default Constructor
FunctionEval()public Initializes the Expression Property

Property Members

NameAccessSummary
Expression : Stringpublic Gets or sets the expression to be evaluated

Method Members

NameAccessSummary
AdditionalFunctionHelper() : Objectprotected This method helps fire the event for any function not intercepted internally
Case() : Objectpublic Executes a case/when statement
ClearVariable() : Voidpublic Clear's a variable's value
DisableFunction() : Voidpublic Disables a function to prevents its calling by the expression.
EnableFunction() : Voidpublic Enable a disabled function
Evaluate() : Objectpublic Evaluates the Expression
Evaluate() : Objectpublic Evaluates a string expression of a function
Evaluate() : Objectpublic Evaluates a string expression of a function
Iif() : Objectpublic Does the work for the IIF function
Replace() : Stringpublic This routine will replace functions existing in the Expression property with thier respective values
Replace() : Stringpublic
Replace() : Stringpublic This routine will replace functions existing in a input string with thier respective values
ReplaceEx() : Stringpublic Since the static replace will not allow a second Replace(string), Replace(ex) will do so with this instance (so that variables will work)
SetVariable() : Voidpublic Sets a variable's value
ToString() : Stringpublic gets a string representation of this expression

ExpressionEval Class

Summary

public class ExpressionEval : DevInstinct.ExternalLibraries.ExpressionEvaluation.IExpression

This class will evaluate boolean and mathmatical expressions

Remarks

This class will evaluate boolean and mathmatical expressions

Constructor Members

NameAccessSummary
ExpressionEval()public Default Constructor
ExpressionEval()public Constructor with string

Property Members

NameAccessSummary
Expression : Stringpublic Gets or sets the expression to be evaluated.

Method Members

NameAccessSummary
ClearVariable() : Voidpublic Clear's a variable's value
DisableFunction() : Voidpublic Disables a function to prevents its calling by the expression.
EnableFunction() : Voidpublic Enable a disabled function
Evaluate() : Objectpublic Evaluates the expression
Evaluate() : Objectpublic Static version of the Expression Evaluator
Evaluate() : Objectpublic Static version of the Expression Evaluator
EvaluateBool() : Booleanpublic Evaluates the expression
EvaluateDouble() : Doublepublic Evaluates the expression
EvaluateInt() : Int32public Evaluates the expression
EvaluateLong() : Int64public Evaluates the expression
SetVariable() : Voidpublic Sets a variable's value
ToString() : Stringpublic gets a string representation of this expression

Namespace : DevInstinct.Soa



DevInstinct.Soa Type List

Interfaces

TypeSummary
IContext<>
IExceptionHandler Mandatory interface of a custom exception handler.

Enumerations

TypeSummary
ArgumentValidationOptions Specifies the options that can be applied to argument validation.
DefaultExceptionHandler.Options Specifies the behavior of the default exception handler.
SoaCode Specifies the SOA codes.

Classes

TypeSummary
ArgumentValidationCommon validation routines for argument validation.
DefaultExceptionHandler Provides default exception handling, which consist of writing the exceptions to a trace source.
ExceptionManager Core class of the exception handling mechanism.
SoaCodeAttribute Attribute used to associate a SOA code to the target.
SoaContext Provides thread-sensitive context for SOA codes.
SoaContextScope Automatically manages the scope of a given SOA context.
SoaEnumException<> Strongly-typed exception class for enumeration code object.
SoaException Service Oriented Architecture exception class.
SoaExceptionCollection Exception class used to collect many errors.
SoaNamespaceAttribute Used to assign a SOA namespace to the target.
SoaSoapExtension Extension used to handle unhandled SOA exceptions.


DevInstinct.Soa Interfaces

IContext<> Interface

Summary

public interface IContext<>

Property Members

NameAccessSummary
Data : <>public
HasData : Booleanpublic

Method Members

NameAccessSummary
Clear() : Voidpublic
Enter() : Voidpublic
Exit() : <>public

IExceptionHandler Interface

Summary

public interface IExceptionHandler

Mandatory interface of a custom exception handler.

Remarks

Mandatory interface of a custom exception handler.

Method Members

NameAccessSummary
HandleException() : Voidpublic Method called by the Exception Manager when the handling of an exception is required.


DevInstinct.Soa Enumerations

ArgumentValidationOptions Enumeration

Summary

public enumeration ArgumentValidationOptions

Specifies the options that can be applied to argument validation.

Remarks

Specifies the options that can be applied to argument validation.

Enumeration Members

FieldSummary
All Null references, null and empty strings and null and empty arrays will be detected.
EmptyArray Null and empty arrays will be detected.
EmptyString Null and empty strings will be detected.
InvalidEnumValue Null (by boxing if not nullable) and invalid enum values will be detected.
None No validation will be made.
NullReference Null references will be detected.

DefaultExceptionHandler.Options Enumeration

Summary

nestedPublic enumeration DefaultExceptionHandler.Options

Specifies the behavior of the default exception handler.

Remarks

Specifies the behavior of the default exception handler.

Enumeration Members

FieldSummary
None Traces only an exception message.
Verbose Traces rich information about an exception, including stack trace and inner exceptions.

SoaCode Enumeration

Summary

public enumeration SoaCode

Specifies the SOA codes.

Remarks

Specifies the SOA codes.

Enumeration Members

FieldSummary
Client Indicates a client error.
Context Indicates a SOA context-dependent error.
Server Indicates a server error.


DevInstinct.Soa Classes

SoaContext Class

Summary

public class SoaContext : DevInstinct.Soa.IContext<>[[DevInstinct.Soa.SoaCode, DevInstinct, Version=1.0.0.0, Culture=neutral, PublicKeyToken=176698ea059ea153]]

Provides thread-sensitive context for SOA codes.

Remarks

Provides thread-sensitive context for SOA codes.

Property Members

NameAccessSummary
CurrentContext : SoaContextpublic Gets the SOA context for the current thread.
Data : SoaCodepublic Gets the SOA code which represents the current context.
HasData : Booleanpublic Gets a value that indicates whether a context has been entered and that Data can be called.

Method Members

NameAccessSummary
Clear() : Voidpublic Clears the thread SOA context.
Enter() : Voidpublic Enters a new SOA context.
Exit() : SoaCodepublic Exits the current SOA context.

SoaContextScope Class

Summary

public class SoaContextScope : System.IDisposable

Automatically manages the scope of a given SOA context.

Remarks

Designed to be used within a "using" statement.

Constructor Members

NameAccessSummary
SoaContextScope()public Constructor.

Method Members

NameAccessSummary
Dispose() : Voidpublic Exits the current SOA context.
Finalize() : Voidprotected Destructor.

ExceptionManager Class

Summary

public abstract class ExceptionManager

Core class of the exception handling mechanism.

Remarks

A desktop or service application can register to the ExceptionManager to handle unexpected exceptions thru the UnhandledExceptionEventHandler event handler. An ASP application can use the Application_Error event to pass the unhandled exceptions to the HandleUnhandledException method. A Web Service can use the ProcessMessage of a SOAPExtension to pass the unhandled exceptions to the HandleUnhandledException method. A method can call HandleException to handle an exception thru the exception handlers. Adding and removing handlers can be done thru the configuration file (see DevInstinct.Configuration.ExceptionHandlersSection) or by code thru the AddHandler and RemoveHandler methods.

Method Members

NameAccessSummary
AddHandler() : Voidpublic Adds an exception handler to the Exception Manager.
HandleException() : Voidpublic Invokes the exception handlers to handle a specific exception.
HandleUnhandledException() : Voidpublic Invokes the exception handlers to handle an exception that must be considered unhandled.
Initialize() : Voidpublic This method can be called to force the initialization of the ExceptionManager class.
RemoveHandler() : Booleanpublic Removes an exception handler from the Exception Manager.
UnhandledExceptionEventHandler() : Voidpublic Represents the method that will handle the event triggered by an exception that is not handled by the application domain.

SoaException Class

Summary

public class SoaException : ApplicationException, System.Runtime.Serialization.ISerializable

Service Oriented Architecture exception class.

This type has the following attributes: System.SerializableAttribute

Remarks

There is symmetry between the SoaException and the SoapException. SoaException.Code | SoapException.Code SoaException.SubCode | SoapException.SubCode.Code SoaException.Message | SoapException.Message

Constructor Members

NameAccessSummary
SoaException()public Constructor.
SoaException()public Constructor.
SoaException()public Constructor.
SoaException()public Constructor.

Field Members

NameAccessSummary
_codeObject : Objectprotected Supplier of SOA code information.

Property Members

NameAccessSummary
Code : SoaCodepublic Gets the SOA code.
CodeObject : Objectpublic Gets the supplier of SOA code information.
CodeObjectType : Typepublic Gets the type of the SOA code information supplier.
IntCode : Int32public Gets the integer value of the SOA code information supplier.
Message : Stringpublic Gets a message that describes the current exception, in the caller's current culture.
MessageArguments : Object[]public Gets the arguments used to format the exception message.
SubCode : XmlQualifiedNamepublic Gets the SOA sub code.

Method Members

NameAccessSummary
InitializeCode() : Voidpublic Initializes the SOA code of the exception.
WrapFrameworkException() : SoaExceptionpublic Wraps a .NET framework in a SOA exception.

SoaEnumException<> Class

Summary

public class SoaEnumException<> : SoaException, System.Runtime.Serialization.ISerializable

Strongly-typed exception class for enumeration code object.

This type has the following attributes: System.SerializableAttribute

Remarks

Enumeration type.

Constructor Members

NameAccessSummary
SoaEnumException<>()public Constructor.
SoaEnumException<>()public Constructor.
SoaEnumException<>()public Constructor.
SoaEnumException<>()public Constructor.

Field Members

NameAccessSummary
_codeObject : Objectprotected(from DevInstinct.Soa.SoaException) Supplier of SOA code information.

Property Members

NameAccessSummary
Code : SoaCodepublic(from DevInstinct.Soa.SoaException) Gets the SOA code.
CodeObject : Objectpublic(from DevInstinct.Soa.SoaException) Gets the supplier of SOA code information.
CodeObjectType : Typepublic(from DevInstinct.Soa.SoaException) Gets the type of the SOA code information supplier.
EnumSubCode : <>public Gets the SOA Sub Code as an enum value.
IntCode : Int32public(from DevInstinct.Soa.SoaException) Gets the integer value of the SOA code information supplier.
Message : Stringpublic(from DevInstinct.Soa.SoaException) Gets a message that describes the current exception, in the caller's current culture.
MessageArguments : Object[]public(from DevInstinct.Soa.SoaException) Gets the arguments used to format the exception message.
SubCode : XmlQualifiedNamepublic(from DevInstinct.Soa.SoaException) Gets the SOA sub code.

Method Members

NameAccessSummary
InitializeCode() : Voidpublic(from DevInstinct.Soa.SoaException) Initializes the SOA code of the exception.

SoaExceptionCollection Class

Summary

public class SoaExceptionCollection : SoaEnumException, System.Runtime.Serialization.ISerializable

Exception class used to collect many errors.

This type has the following attributes: System.SerializableAttribute

Remarks

A SoaExceptionCollection must not have an InnerException constructor: the collection itself must contains all the inners exceptions.

Constructor Members

NameAccessSummary
SoaExceptionCollection()public Constructor.

Field Members

NameAccessSummary
_codeObject : Objectprotected(from DevInstinct.Soa.SoaException) Supplier of SOA code information.

Property Members

NameAccessSummary
Code : SoaCodepublic Gets the SOA code.
CodeObject : Objectpublic(from DevInstinct.Soa.SoaException) Gets the supplier of SOA code information.
CodeObjectType : Typepublic(from DevInstinct.Soa.SoaException) Gets the type of the SOA code information supplier.
EnumSubCode : CommonEnumpublic(from DevInstinct.Soa.SoaEnumException<>) Gets the SOA Sub Code as an enum value.
Exceptions : IDictionarypublic Returns the dictionary that contains the references (keys) and exceptions (values).
IntCode : Int32public(from DevInstinct.Soa.SoaException) Gets the integer value of the SOA code information supplier.
Message : Stringpublic(from DevInstinct.Soa.SoaException) Gets a message that describes the current exception, in the caller's current culture.
MessageArguments : Object[]public(from DevInstinct.Soa.SoaException) Gets the arguments used to format the exception message.
SubCode : XmlQualifiedNamepublic(from DevInstinct.Soa.SoaException) Gets the SOA sub code.

Method Members

NameAccessSummary
Add() : Voidpublic Adds an exception to the collection.
InitializeCode() : Voidpublic(from DevInstinct.Soa.SoaException) Initializes the SOA code of the exception.

SoaCodeAttribute Class

Summary

public class SoaCodeAttribute : ValueAttribute

Attribute used to associate a SOA code to the target.

Remarks

Attribute used to associate a SOA code to the target.

Constructor Members

NameAccessSummary
SoaCodeAttribute()public Constructor.

Property Members

NameAccessSummary
Code : SoaCodepublic Gets or sets the SOA code.

Method Members

NameAccessSummary
GetCode() : SoaCodepublic Resolves an object attributes and returns its associated SOA code.
GetValue() : <>protected(from DevInstinct.ValueAttribute) Returns the strongly-typed value.
SetValue() : Voidprotected(from DevInstinct.ValueAttribute) Sets the strongly-typed value.

SoaSoapExtension Class

Summary

public class SoaSoapExtension : SoapExtension

Extension used to handle unhandled SOA exceptions.

Remarks

Also patch the MustUnderstand attribute.

Constructor Members

NameAccessSummary
SoaSoapExtension()publicInitializes a new instance of the class.

Method Members

NameAccessSummary
GetInitializer() : Objectpublic Allows the SOAP extension to initialize data specific to a class implementing an XML Web service at a one time performance cost.
GetInitializer() : Objectpublic Allows the SOAP extension to initialize data specific to an XML Web service method using an attribute applied to the XML Web service method at a one time performance cost.
HandleUnhandledException() : Voidprotected Handles unhandled SOA exceptions.
Initialize() : Voidpublic Allows the SOAP extension to initialize itself using the data cached in the GetInitializer method.
ProcessMessage() : Voidpublic Allows a SOAP extension to receive a SoapMessage to process at each SoapMessageStage.

DefaultExceptionHandler Class

Summary

public class DefaultExceptionHandler : DevInstinct.Soa.IExceptionHandler

Provides default exception handling, which consist of writing the exceptions to a trace source.

Remarks

Provides default exception handling, which consist of writing the exceptions to a trace source.

Constructor Members

NameAccessSummary
DefaultExceptionHandler()public Constructor.

Field Members

NameAccessSummary
TraceSourceNameSuffix : Stringpublic Trace source name suffix of an exception handler.

Property Members

NameAccessSummary
Name : Stringpublic Gets the name of the exception handler.
TraceSourceName : Stringpublic Gets the name of the trace source associated to the exception handler.

Method Members

NameAccessSummary

ArgumentValidation Class

Summary

public abstract class ArgumentValidation

Common validation routines for argument validation.

Remarks

ArgumentValidation uses the argument index in its method to find the argument name. This strategy prevents the hardcoding of argument names in parameters to ArgumentValidation methods, which is unsafe for code security when obfuscation (without string encoding) is used.

Method Members

NameAccessSummary
Check() : Voidpublic Throws an exception if any of the given arguments fails the specified validations.
Check() : Voidpublic Throws an exception if any of the given arguments is null or of 0 length in the case of a string or an array.
CheckByIndex() : Voidpublic Throws an exception if the given argument fails the specified validations.
CheckType() : Voidpublic Throws an exception if the given argument is not of the specified type.
GetInvalidParameterException() : CommonEnum}public Returns a SOA invalid parameter exception.
GetInvalidParameterException() : CommonEnum}public Returns a SOA invalid parameter exception.

SoaNamespaceAttribute Class

Summary

public class SoaNamespaceAttribute : ValueAttribute

Used to assign a SOA namespace to the target.

Remarks

Used to assign a SOA namespace to the target.

Constructor Members

NameAccessSummary
SoaNamespaceAttribute()public Constructor.

Property Members

NameAccessSummary
Namespace : Stringpublic Gets or sets the namespace.

Method Members

NameAccessSummary
GetNamespace() : Stringpublic Resolves an object attributes and returns its associated namespace.
GetValue() : <>protected(from DevInstinct.ValueAttribute) Returns the strongly-typed value.
SetValue() : Voidprotected(from DevInstinct.ValueAttribute) Sets the strongly-typed value.

Namespace : DevInstinct.Iso



DevInstinct.Iso Type List

Classes

TypeSummary
IsoDate ISO 8601 Date class.
IsoDateTime ISO 8601 DateTime class.
IsoDouble Represents a Floating Point number format similar to ISO 6093.
IsoTime ISO 8601 Time class.


DevInstinct.Iso Classes

IsoDateTime Class

Summary

public class IsoDateTime : CustomDateTime, DevInstinct.ICustomDateTime, System.IConvertible

ISO 8601 DateTime class.

Remarks

ISO 8601 DateTime class.

Constructor Members

NameAccessSummary
IsoDateTime()public Default constructor.
IsoDateTime()public Constructor.

Property Members

NameAccessSummary
DateTime : DateTimepublic(from DevInstinct.CustomDateTime<>) Gets or sets the DateTime value.
Format : Stringpublic Gets the DateTime format.

Method Members

NameAccessSummary
GetShortUtcOffset() : Stringpublic Returns the coordinated universal time (UTC) offset, without the seconds, for the specified local time.
GetTypeCode() : TypeCodepublic(from DevInstinct.CustomDateTime<>) Returns the TypeCode for this instance.
ToBoolean() : Booleanpublic(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToByte() : Bytepublic(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToChar() : Charpublic(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToDateTime() : DateTimepublic(from DevInstinct.CustomDateTime<>) Returns the current DateTime object.
ToDecimal() : Decimalpublic(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToDouble() : Doublepublic(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToInt16() : Int16public(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToInt32() : Int32public(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToInt64() : Int64public(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToSByte() : SBytepublic(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToSingle() : Singlepublic(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToString() : Stringpublic Converts the value of this instance to its equivalent string representation.
ToString() : Stringpublic Converts the value of this instance to its equivalent string representation using the specified culture-specific format information.
ToType() : Objectpublic(from DevInstinct.CustomDateTime<>) Converts the current DateTime object to an object of a specified type.
ToUInt16() : UInt16public(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToUInt32() : UInt32public(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToUInt64() : UInt64public(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.

IsoTime Class

Summary

public class IsoTime : CustomDateTime, DevInstinct.ICustomDateTime, System.IConvertible

ISO 8601 Time class.

Remarks

ISO 8601 Time class.

Constructor Members

NameAccessSummary
IsoTime()public Default constructor.
IsoTime()public Constructor.

Property Members

NameAccessSummary
DateTime : DateTimepublic Clears the date and sets the DateTime value.
Format : Stringpublic Gets the DateTime format.

Method Members

NameAccessSummary
ClearDate() : DateTimepublic Sets the date to 1900-01-01 (default for SQL Server) for a DateTime.
GetTypeCode() : TypeCodepublic(from DevInstinct.CustomDateTime<>) Returns the TypeCode for this instance.
Parse() : IsoTimepublic Converts the specified string representation of a time to its ISO time equivalent.
Parse() : IsoTimepublic Converts the specified string representation of a time to its ISO time equivalent using the specified culture-specific format information.
ToBoolean() : Booleanpublic(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToByte() : Bytepublic(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToChar() : Charpublic(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToDateTime() : DateTimepublic(from DevInstinct.CustomDateTime<>) Returns the current DateTime object.
ToDecimal() : Decimalpublic(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToDouble() : Doublepublic(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToInt16() : Int16public(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToInt32() : Int32public(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToInt64() : Int64public(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToSByte() : SBytepublic(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToSingle() : Singlepublic(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToString() : Stringpublic(from DevInstinct.CustomDateTime<>) Converts the value of this instance to its equivalent string representation.
ToString() : Stringpublic(from DevInstinct.CustomDateTime<>) Converts the value of this instance to its equivalent string representation using the specified culture-specific format information.
ToType() : Objectpublic(from DevInstinct.CustomDateTime<>) Converts the current DateTime object to an object of a specified type.
ToUInt16() : UInt16public(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToUInt32() : UInt32public(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToUInt64() : UInt64public(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.

IsoDate Class

Summary

public class IsoDate : CustomDateTime, DevInstinct.ICustomDateTime, System.IConvertible

ISO 8601 Date class.

Remarks

ISO 8601 Date class.

Constructor Members

NameAccessSummary
IsoDate()public Default constructor.
IsoDate()public Constructor.

Property Members

NameAccessSummary
DateTime : DateTimepublic Clears the time and sets the DateTime value.
Format : Stringpublic Gets the DateTime format.

Method Members

NameAccessSummary
ClearTime() : DateTimepublic Sets the hour to 00:00:00 (default for SQL Server) for a DateTime.
GetTypeCode() : TypeCodepublic(from DevInstinct.CustomDateTime<>) Returns the TypeCode for this instance.
Parse() : IsoDatepublic Converts the specified string representation of a date to its ISO date equivalent.
Parse() : IsoDatepublic Converts the specified string representation of a date to its ISO date equivalent using the specified culture-specific format information.
ToBoolean() : Booleanpublic(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToByte() : Bytepublic(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToChar() : Charpublic(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToDateTime() : DateTimepublic(from DevInstinct.CustomDateTime<>) Returns the current DateTime object.
ToDecimal() : Decimalpublic(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToDouble() : Doublepublic(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToInt16() : Int16public(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToInt32() : Int32public(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToInt64() : Int64public(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToSByte() : SBytepublic(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToSingle() : Singlepublic(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToString() : Stringpublic(from DevInstinct.CustomDateTime<>) Converts the value of this instance to its equivalent string representation.
ToString() : Stringpublic(from DevInstinct.CustomDateTime<>) Converts the value of this instance to its equivalent string representation using the specified culture-specific format information.
ToType() : Objectpublic(from DevInstinct.CustomDateTime<>) Converts the current DateTime object to an object of a specified type.
ToUInt16() : UInt16public(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToUInt32() : UInt32public(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToUInt64() : UInt64public(from DevInstinct.CustomDateTime<>) This conversion is not supported. Attempting to do so throws an InvalidCastException.

IsoDouble Class

Summary

public class IsoDouble : System.IConvertible

Represents a Floating Point number format similar to ISO 6093.

Remarks

That is, this double is always serialized with a dot as a decimal separator and it doesn't use thousands separators.

Constructor Members

NameAccessSummary
IsoDouble()public Default constructor.
IsoDouble()public Constructor.

Method Members

NameAccessSummary
GetTypeCode() : TypeCodepublic Returns the TypeCode for this instance.
Parse() : IsoDoublepublic Converts the specified string representation of a double to its ISO double equivalent.
ToBoolean() : Booleanpublic
ToByte() : Bytepublic
ToChar() : Charpublic
ToDateTime() : DateTimepublic This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToDecimal() : Decimalpublic
ToDouble() : Doublepublic Returns the current double.
ToInt16() : Int16public
ToInt32() : Int32public
ToInt64() : Int64public
ToSByte() : SBytepublic
ToSingle() : Singlepublic
ToString() : Stringpublic Converts the value of this instance to its equivalent string representation.
ToString() : Stringpublic Converts the value of this instance to its equivalent string representation using the specified culture-specific format information.
ToType() : Objectpublic Converts the current DateTime object to an object of a specified type.
ToUInt16() : UInt16public
ToUInt32() : UInt32public
ToUInt64() : UInt64public

Namespace : DevInstinct.Caching



DevInstinct.Caching Type List

Classes

TypeSummary
CacheUtil Provides utilities for caching.


DevInstinct.Caching Classes

CacheUtil Class

Summary

public abstract class CacheUtil

Provides utilities for caching.

Remarks

Provides utilities for caching.

Method Members

NameAccessSummary
GetCacheKey() : Stringpublic Returns a key based on the given object's string representation and the calling method.

Namespace : DevInstinct



DevInstinct Type List

Interfaces

TypeSummary
ICustomDateTime Interface exposed by an object that implements a custom DateTime with fixed formatting.
IKeyElement Interface exposed by an object that can be identified by a unique key.

Enumerations

TypeSummary
ApplicationTypes Specifies the types of .NET applications.

Delegates

TypeSummary
ValueChangedEventHandler Represents the method that will handle a value changed events.

Classes

TypeSummary
ApplicationInfo Retrieves application information for any type of application.
BaseNameAttribute Used to assign a base name to the target.
ComparablePattern Represents a regular expression pattern that can be compared to objects. If the object matches the pattern, they are considered equals.
CustomDateTime<> Base class for custom DateTime with fixed formatting.
CustomDateTimeConverter<> Provides a type converter to convert custom date and time objects to and from various other representations.
DelegateUtil Offers extended delegate functionalities.
EvaluableString<> Represents a string expression than can be evaluated to a single value.
QuotedString Represents a double-quoted string.
ValueAttribute Provides base functionality for a single value attribute.
Variant Behaves like a Variant type.


DevInstinct Interfaces

ICustomDateTime Interface

Summary

public interface ICustomDateTime

Interface exposed by an object that implements a custom DateTime with fixed formatting.

Remarks

Interface exposed by an object that implements a custom DateTime with fixed formatting.

Property Members

NameAccessSummary
DateTime : DateTimepublic Gets or sets the DateTime value.
Format : Stringpublic Gets the DateTime format.

IKeyElement Interface

Summary

public interface IKeyElement

Interface exposed by an object that can be identified by a unique key.

Remarks

Interface exposed by an object that can be identified by a unique key.

Method Members

NameAccessSummary
GetElementKey() : Objectpublic Gets a unique key for this element.


DevInstinct Enumerations

ApplicationTypes Enumeration

Summary

public enumeration ApplicationTypes

Specifies the types of .NET applications.

Remarks

Specifies the types of .NET applications.

Enumeration Members

FieldSummary
Asp Active Server Pages hosted application.
Dll Dynamic-Linked Library.
Exe Excecutable.


DevInstinct Delegates

ValueChangedEventHandler Delegate

Summary

public delegate ValueChangedEventHandler

Represents the method that will handle a value changed events.

Remarks

True to accept the change, false to discard it.



DevInstinct Classes

CustomDateTime<> Class

Summary

public abstract class CustomDateTime<> : DevInstinct.ICustomDateTime, System.IConvertible

Base class for custom DateTime with fixed formatting.

Remarks

Using the ICustomDateTime as a base interface and a constraint allows the class to simulate type-parameter derivation à la C++.

Constructor Members

NameAccessSummary
CustomDateTime<>()public Default constructor.
CustomDateTime<>()public Constructor.

Property Members

NameAccessSummary
DateTime : DateTimepublic Gets or sets the DateTime value.
Format : Stringpublic Gets the DateTime format.

Method Members

NameAccessSummary
GetTypeCode() : TypeCodepublic Returns the TypeCode for this instance.
Parse() : <>public Converts the specified string representation of a date and time to its custom date time equivalent.
Parse() : <>public Converts the specified string representation of a date and time to its custom date time equivalent using the specified culture-specific format information.
ToBoolean() : Booleanpublic This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToByte() : Bytepublic This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToChar() : Charpublic This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToDateTime() : DateTimepublic Returns the current DateTime object.
ToDecimal() : Decimalpublic This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToDouble() : Doublepublic This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToInt16() : Int16public This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToInt32() : Int32public This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToInt64() : Int64public This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToSByte() : SBytepublic This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToSingle() : Singlepublic This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToString() : Stringpublic Converts the value of this instance to its equivalent string representation.
ToString() : Stringpublic Converts the value of this instance to its equivalent string representation using the specified culture-specific format information.
ToType() : Objectpublic Converts the current DateTime object to an object of a specified type.
ToUInt16() : UInt16public This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToUInt32() : UInt32public This conversion is not supported. Attempting to do so throws an InvalidCastException.
ToUInt64() : UInt64public This conversion is not supported. Attempting to do so throws an InvalidCastException.

ComparablePattern Class

Summary

public class ComparablePattern : System.IComparable

Represents a regular expression pattern that can be compared to objects. If the object matches the pattern, they are considered equals.

Remarks

Represents a regular expression pattern that can be compared to objects. If the object matches the pattern, they are considered equals.

Constructor Members

NameAccessSummary
ComparablePattern()public Constructor.
ComparablePattern()public Constructor.

Property Members

NameAccessSummary
Pattern : Stringpublic Gets the regular expression pattern.

Method Members

NameAccessSummary
CompareTo() : Int32public Compares the pattern with the string representation of another object.
ToString() : Stringpublic Returns a String that represents the regular expression pattern.

ValueAttribute Class

Summary

public class ValueAttribute : Attribute

Provides base functionality for a single value attribute.

Remarks

An attribute class can't be generic, this is why templates methods are used here.

Constructor Members

NameAccessSummary
ValueAttribute()public Constructor.

Property Members

NameAccessSummary

Method Members

NameAccessSummary
GetAttributeValue() : <>protected Resolves an object attributes and returns its associated value.
GetValue() : <>protected Returns the strongly-typed value.
SetValue() : Voidprotected Sets the strongly-typed value.

ApplicationInfo Class

Summary

public abstract class ApplicationInfo

Retrieves application information for any type of application.

Remarks

Supports Exe, Asp and Dll applications.

Property Members

NameAccessSummary
ApplicationInfoFile : Stringpublic Gets the full path of the application info configuration file.
ApplicationName : Stringpublic Gets the name of the application.
ApplicationType : ApplicationTypespublic Gets the type of the application.
DirectoryName : Stringpublic Gets the directory of the application.

Method Members

NameAccessSummary
GetApplicationInfoSchemaStream() : Streampublic Gets the ApplicationInfo's schemas as a stream.

QuotedString Class

Summary

public class QuotedString : System.IConvertible

Represents a double-quoted string.

Remarks

Represents a double-quoted string.

Constructor Members

NameAccessSummary
QuotedString()public Default constructor.
QuotedString()public Constructor.

Property Members

NameAccessSummary
String : Stringpublic Gets or sets the value of the quoted string.

Method Members

NameAccessSummary
GetTypeCode() : TypeCodepublic Returns the TypeCode for this instance.
Parse() : QuotedStringpublic Parses a double-quoted string and produces a new QuotedString for that string.
ToBoolean() : Booleanpublic
ToByte() : Bytepublic
ToChar() : Charpublic
ToDateTime() : DateTimepublic
ToDecimal() : Decimalpublic
ToDouble() : Doublepublic
ToInt16() : Int16public
ToInt32() : Int32public
ToInt64() : Int64public
ToSByte() : SBytepublic
ToSingle() : Singlepublic
ToString() : Stringpublic Converts the value of this instance to its equivalent string representation.
ToString() : Stringpublic Converts the value of this instance to its equivalent string representation using the specified culture-specific format information.
ToType() : Objectpublic
ToUInt16() : UInt16public
ToUInt32() : UInt32public
ToUInt64() : UInt64public

BaseNameAttribute Class

Summary

public class BaseNameAttribute : ValueAttribute

Used to assign a base name to the target.

Remarks

A base name is the root name of the item the target duplicates.

Constructor Members

NameAccessSummary
BaseNameAttribute()public Constructor.

Property Members

NameAccessSummary
BaseName : Stringpublic Gets or sets the base name.

Method Members

NameAccessSummary
GetBaseName() : Stringpublic Resolves an object attributes and returns its associated namespace.
GetValue() : <>protected(from DevInstinct.ValueAttribute) Returns the strongly-typed value.
SetValue() : Voidprotected(from DevInstinct.ValueAttribute) Sets the strongly-typed value.

CustomDateTimeConverter<> Class

Summary

public class CustomDateTimeConverter<> : DateTimeConverter

Provides a type converter to convert custom date and time objects to and from various other representations.

Remarks

Strangely, DateTimeConverter doesn't support converting to/from DateTime. This converter supports it.

Constructor Members

NameAccessSummary
CustomDateTimeConverter<>()publicInitializes a new instance of the class.

Method Members

NameAccessSummary
CanConvertFrom() : Booleanpublic Gets a value indicating whether this converter can convert an object in the given source type to a custom date and time using the specified context.
CanConvertTo() : Booleanpublic Gets a value indicating whether this converter can convert a custom date and time to the given destination type using the context.
ConvertFrom() : Objectpublic Converts the given value object to a custom date and time.
ConvertTo() : Objectpublic Converts the given custom date and time to the specified type, using the arguments.

DelegateUtil Class

Summary

public abstract class DelegateUtil

Offers extended delegate functionalities.

Remarks

Delegates can't be used as generic type parameters, this is why the Invoke methods use strongly-typed parameters.

Method Members

NameAccessSummary
Invoke() : Voidpublic Invokes a FileSystemEventHandler delegate synchronously or asynchronously.
Invoke() : Voidpublic Invokes a RenamedEventHandler delegate synchronously or asynchronously.

Variant Class

Summary

public class Variant

Behaves like a Variant type.

Remarks

Provides implict operators for automatic type conversion.

Constructor Members

NameAccessSummary
Variant()public Default Constructor.
Variant()public Constructor.

Property Members

NameAccessSummary
IsNull : Booleanpublic Indicates whether the value contained in the Variant is null.
IsString : Booleanpublic Indicates whether the value contained in the Variant is a string.
Type : Typepublic Gets the type of the managed value.
Value : Objectpublic Gets or sets the boxed value managed as a Variant.

Method Members

NameAccessSummary
ToString() : Stringpublic Returns a String that represents the managed value.

EvaluableString<> Class

Summary

public class EvaluableString<> : QuotedString, System.IConvertible

Represents a string expression than can be evaluated to a single value.

Remarks

Uses the expression evaluation classes from http://codeproject.com/csharp/expressionevaluator.asp.

Constructor Members

NameAccessSummary
EvaluableString<>()public Default constructor.
EvaluableString<>()public Constructor.

Property Members

NameAccessSummary
String : Stringpublic(from DevInstinct.QuotedString) Gets or sets the value of the quoted string.

Method Members

NameAccessSummary
Evaluate() : Objectpublic Evaluates the string's expression.
GetTypeCode() : TypeCodepublic(from DevInstinct.QuotedString) Returns the TypeCode for this instance.
Parse() : EvaluableString{<>}public Parses an evaluable string and produces a new instance of this class.
ToBoolean() : Booleanpublic(from DevInstinct.QuotedString)
ToByte() : Bytepublic(from DevInstinct.QuotedString)
ToChar() : Charpublic(from DevInstinct.QuotedString)
ToDateTime() : DateTimepublic(from DevInstinct.QuotedString)
ToDecimal() : Decimalpublic(from DevInstinct.QuotedString)
ToDouble() : Doublepublic(from DevInstinct.QuotedString)
ToInt16() : Int16public(from DevInstinct.QuotedString)
ToInt32() : Int32public(from DevInstinct.QuotedString)
ToInt64() : Int64public(from DevInstinct.QuotedString)
ToSByte() : SBytepublic(from DevInstinct.QuotedString)
ToSingle() : Singlepublic(from DevInstinct.QuotedString)
ToString() : Stringpublic Converts the value of this instance to its equivalent string representation.
ToString() : Stringpublic(from DevInstinct.QuotedString) Converts the value of this instance to its equivalent string representation using the specified culture-specific format information.
ToType() : Objectpublic(from DevInstinct.QuotedString)
ToUInt16() : UInt16public(from DevInstinct.QuotedString)
ToUInt32() : UInt32public(from DevInstinct.QuotedString)
ToUInt64() : UInt64public(from DevInstinct.QuotedString)

Namespace : DevInstinct.Patterns



DevInstinct.Patterns Type List

Classes

TypeSummary
Singleton<> Manages the single instance of a class.


DevInstinct.Patterns Classes

Singleton<> Class

Summary

public abstract class Singleton<>

Manages the single instance of a class.

Remarks

See http://www.yoda.arachsys.com/csharp/singleton.html.

Field Members

NameAccessSummary
Instance : <>public The single instance of the class.

Method Members

NameAccessSummary

Namespace : DevInstinct.Diagnostics



DevInstinct.Diagnostics Type List

Classes

TypeSummary
CorrelationScope Automatically manages the trace correlation for a logical operation with a specified identity on a thread.
DebugSource Provides a set of methods and properties that help you trace the execution of your code in DEBUG builds.
DependentSourceSwitch Source switch that implements dependencies toward the levels of other source switches.
EventTraceSource Provides a set of methods and properties that help you trace the execution of your code with specialized event objects.
TraceEventTypeAttribute Attribute used to associate a trace event type to the target.


DevInstinct.Diagnostics Classes

TraceEventTypeAttribute Class

Summary

public class TraceEventTypeAttribute : ValueAttribute

Attribute used to associate a trace event type to the target.

Remarks

Attribute used to associate a trace event type to the target.

Constructor Members

NameAccessSummary
TraceEventTypeAttribute()public Constructor.

Property Members

NameAccessSummary
EventType : TraceEventTypepublic Gets or sets the trace event type.

Method Members

NameAccessSummary
GetEventType() : TraceEventTypepublic Resolves an object attributes and returns its associated trace event type.
GetValue() : <>protected(from DevInstinct.ValueAttribute) Returns the strongly-typed value.
SetValue() : Voidprotected(from DevInstinct.ValueAttribute) Sets the strongly-typed value.

EventTraceSource Class

Summary

public class EventTraceSource

Provides a set of methods and properties that help you trace the execution of your code with specialized event objects.

Remarks

Provides a set of methods and properties that help you trace the execution of your code with specialized event objects.

Constructor Members

NameAccessSummary
EventTraceSource()public Constructor.

Method Members

NameAccessSummary
TraceEvent() : Voidpublic Calls the TraceEvent method of each trace listener, specifying the event severity and the numeric trace identifier.
TraceEvent() : Voidpublic Calls the TraceEvent method of each trace listener, specifying the event severity and the numeric trace identifier.
TraceEvent() : Voidpublic Calls the TraceEvent method of each trace listener, specifying the event severity and the numeric trace identifier.
TraceEvent() : Voidpublic Calls the TraceEvent method of each trace listener, specifying the event severity and the numeric trace identifier.

CorrelationScope Class

Summary

public class CorrelationScope : System.IDisposable

Automatically manages the trace correlation for a logical operation with a specified identity on a thread.

Remarks

Designed to be used within a "using" statement.

Constructor Members

NameAccessSummary
CorrelationScope()public Starts a logical operation with the specified identity on a thread.

Property Members

NameAccessSummary
CorrelationManager : CorrelationManagerpublic Gets the correlation manager for the current thread.

Method Members

NameAccessSummary
Finalize() : Voidprotected Destructor.

DependentSourceSwitch Class

Summary

public class DependentSourceSwitch : SourceSwitch

Source switch that implements dependencies toward the levels of other source switches.

Remarks

TODO: this class is used as a prototype class and is not functionnal. TODO: prabably remove from solution.

Constructor Members

NameAccessSummary
DependentSourceSwitch()public Constructor.

Property Members

NameAccessSummary
ApplicationSourceSwitch : SourceSwitchpublic System-wide source switch that can be used as the root master switch for dependent source switches.

Method Members

NameAccessSummary

DebugSource Class

Summary

public class DebugSource : TraceSource

Provides a set of methods and properties that help you trace the execution of your code in DEBUG builds.

Remarks

EventDebugSource should usually be used instead of DebugSource.

Constructor Members

NameAccessSummary
DebugSource()public Initializes a new instance of the TraceSource class, using the specified the name for the source.
DebugSource()public Initializes a new instance of the TraceSource class, using the specified the name for the source and the default source level at which tracing is to occur.

Property Members

NameAccessSummary

Method Members

NameAccessSummary
TraceData() : Voidpublic Calls the corresponding TraceData methods on the trace listeners, providing a data object and specifying the severity and identity to be associated with the trace.
TraceData() : Voidpublic Calls the corresponding TraceData methods on the trace listeners, providing an array of data objects and specifying the severity and identity to be associated with the trace.
TraceEvent() : Voidpublic Calls the TraceEvent method of each trace listener, specifying the event severity and the numeric trace identifier.
TraceEvent() : Voidpublic Calls the corresponding TraceEvent methods in the trace listeners, providing a message and specifying the event severity and a numeric trace identifier.
TraceEvent() : Voidpublic Calls the corresponding TraceEvent methods in the trace listeners, providing an argument array and format information and specifying the event severity and a numeric trace identity.
TraceInformation() : Voidpublic Calls the TraceEvent method of each trace listener to write an information trace, specifying the message to write.
TraceInformation() : Voidpublic Calls the TraceEvent methods in the trace listeners to write an information trace, specifying an array of objects and formatting information.

Namespace : DevInstinct.Threading.Samples



DevInstinct.Threading.Samples Type List

Classes

TypeSummary
JobDispatcherSample Job dispatcher sample.


DevInstinct.Threading.Samples Classes

JobDispatcherSample Class

Summary

public class JobDispatcherSample

Job dispatcher sample.

Remarks

Job dispatcher sample.

Constructor Members

NameAccessSummary
JobDispatcherSample()publicInitializes a new instance of the class.

Method Members

NameAccessSummary
RunSample() : Voidpublic Call this method to run the sample.

Namespace : DevInstinct.IO



DevInstinct.IO Type List

Classes

TypeSummary
DirectoryUtil Offers extended directory functionalities.
FileChangedWatcher Listens to the file system change notifications and raises an event when a file in a directory changes in any ways.
FileUtil Offers extended file functionalities.
SingleEventFileWatcher Listens to the file system change notifications and raises events when a directory, or file in a directory, changes.


DevInstinct.IO Classes

FileChangedWatcher Class

Summary

public class FileChangedWatcher : System.IDisposable

Listens to the file system change notifications and raises an event when a file in a directory changes in any ways.

Remarks

Listens to the file system change notifications and raises an event when a file in a directory changes in any ways.

Constructor Members

NameAccessSummary
FileChangedWatcher()public Constructor.
FileChangedWatcher()public Constructor.

Property Members

NameAccessSummary
IsAsync : Booleanpublic Gets or sets a value indicating whether the Changed event is raised asynchronously.
SingleEventFileWatcher : SingleEventFileWatcherpublic The SingleEventFileWatcher used to watch over files and directories.

Method Members

NameAccessSummary
Dispose() : Voidpublic Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

FileUtil Class

Summary

public abstract class FileUtil

Offers extended file functionalities.

Remarks

Offers extended file functionalities.

Method Members

NameAccessSummary
WaitForUnlock() : Voidpublic Waits until a given file is unlocked or that the specified amount of time has passed.

DirectoryUtil Class

Summary

public abstract class DirectoryUtil

Offers extended directory functionalities.

Remarks

Offers extended directory functionalities.

Method Members

NameAccessSummary
DeleteFiles() : String}public Deletes multiple files from a directory based on the supplied pattern.
DeleteFiles() : String}public Deletes multiple files from a directory based on the supplied pattern and lifetime.
GetCleanFullname() : Stringpublic Gets the full path of the directory, terminated by a directory separator character.

SingleEventFileWatcher Class

Summary

public class SingleEventFileWatcher : System.IDisposable

Listens to the file system change notifications and raises events when a directory, or file in a directory, changes.

Remarks

SingleEventFileWatcher is a fix for the FileSystemWatcher, which often raises many events when a file is changed. SingleEventFileWatcher waits a little bit before raising the events, so that multiple events raised at relatively the same time are not duplicated. SingleEventFileWatcher sends only the most recent event. As an example, if a file is deleted and then immediately re-created (which also generates FileSystemWatcher Changed events), only the Changed event is raised.

Constructor Members

NameAccessSummary
SingleEventFileWatcher()public Constructor.
SingleEventFileWatcher()public Constructor.
SingleEventFileWatcher()public Constructor.
SingleEventFileWatcher()public Constructor.
SingleEventFileWatcher()public Constructor.

Property Members

NameAccessSummary
FileSystemWatcher : FileSystemWatcherpublic The FileSystemWatcher used to watch over files and directories.
IsAsync : Booleanpublic Gets or sets a value indicating whether the events are raised asynchronously.

Method Members

NameAccessSummary
Dispose() : Voidpublic Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Namespace : DevInstinct.Xml.Serialization



DevInstinct.Xml.Serialization Type List

Classes

TypeSummary
XmlSchemaExporterExtension Extends the functionnality of the XmlSchemaExporter class.
XmlStreamSerializer<> Handles simple xml typed-serialization.
XmlTextSerializer<> Handles simple xml typed-serialization.


DevInstinct.Xml.Serialization Classes

XmlSchemaExporterExtension Class

Summary

public class XmlSchemaExporterExtension : XmlSchemaExporter

Extends the functionnality of the XmlSchemaExporter class.

Remarks

Extends the functionnality of the XmlSchemaExporter class.

Constructor Members

NameAccessSummary
XmlSchemaExporterExtension()public Default constructor.
XmlSchemaExporterExtension()public Constructore.

Property Members

NameAccessSummary
Schemas : XmlSchemaspublic Gets the xml schema collection used by the exporter.

Method Members

NameAccessSummary
ExportTypeMapping() : XmlSchemapublic Adds a schema for a .NET Framework type to the xml schema collection used by the exporter.
ExportTypeMapping() : XmlSchemapublic Adds a schema for a .NET Framework type to the xml schema collection used by the exporter.

XmlTextSerializer<> Class

Summary

public class XmlTextSerializer<>

Handles simple xml typed-serialization.

Remarks

Xml-attributed class to serialize.

Constructor Members

NameAccessSummary
XmlTextSerializer<>()publicInitializes a new instance of the class.

Method Members

NameAccessSummary
Deserialize() : <>public Deserializes the XML document using the given schema for validation.
Deserialize() : <>public Deserializes the XML document using the type's schema for validation.
Deserialize() : <>public Deserializes the XML document using the type's schema for validation.
Serialize() : Voidpublic Serializes the specified typed-data and writes the XML document to a file using a XmlTextWriter.
Serialize() : Voidpublic Serializes the specified typed-data and writes the XML document to a file using a XmlTextWriter.

XmlStreamSerializer<> Class

Summary

public class XmlStreamSerializer<>

Handles simple xml typed-serialization.

Remarks

Xml-attributed class to serialize.

Constructor Members

NameAccessSummary
XmlStreamSerializer<>()publicInitializes a new instance of the class.

Method Members

NameAccessSummary
Deserialize() : <>public Deserializes the XML document using the type's schema for validation.

Namespace : DevInstinct.Soa.ErrorCodes



DevInstinct.Soa.ErrorCodes Type List

Enumerations

TypeSummary
CommonEnumEnum for the Common.resx file.


DevInstinct.Soa.ErrorCodes Enumerations

CommonEnum Enumeration

Summary

public enumeration CommonEnum

Enum for the Common.resx file.

Remarks

Generated by DevInstinct Inc.

Enumeration Members

FieldSummary
Configuration1; Configuration file error.
ErrorCollection2; Many errors.
ExceptionHandler3; Exception Handler '{0}' failed to initialize.
Framework4; .NET framework error.
InvalidParameter5; Parameter '{0}' is invalid.
SoaContextNotEntered8; No SOA context has been entered.
Undefined6; Unknown error.
Unexpected7; Unexpected error.
XmlFileDeserializationFailed9; Xml deserialization failed for file '{0}'.
XmlFileSerializationFailed10; Xml serialization failed for file '{0}'.
XmlStreamDeserializationFailed11; Xml stream deserialization failed.
XmlValidation12; Xml validation failed at line '{0}' position '{1}'.

Namespace : DevInstinct.Configuration



DevInstinct.Configuration Type List

Classes

TypeSummary
ApplicationConfiguration Provides access to configuration files and configuration sections in one unified class.
ArgumentValidationElement Argument validation element of a configuration file.
ExceptionHandlerElement Exception handler element of a configuration file.
ExceptionHandlerElement.PropertyNames Contains constants for the names of the configuration properties used by this configuration element.
ExceptionHandlerElementCollection Exception handlers collection of a configuration file.
ExceptionHandlersSection Exception handlers section of a configuration file.
ExceptionHandlersSection.PropertyNames Contains constants for the names of the configuration properties used by this configuration element.
NamedConfigurationElement Simple named element of a configuration file.
NamedConfigurationElement.PropertyNames Contains constants for the names of the configuration properties used by this configuration element.
OptimizationSection Optimization section of a configuration file.
OptimizationSection.PropertyNames Contains constants for the names of the configuration properties used by this configuration element.
TConfigurationElementCollection<> Base collection class for configuration element that can be uniquely identified with a key.
XmlApplicationSection Application root section of a XML serialization-based configuration file.
XmlConfigurationSection Alternate root section of a XML serialization-based configuration file structure.
XmlNamedElement<> Simple named element of a XML serialization-based configuration file.
XmlNamedElementCollection<> Base collection class for XML serialization-based configuration elements that can be uniquely identified with a name.
XmlSectionElement Section element of a XML serialization-based configuration file.


DevInstinct.Configuration Classes

TConfigurationElementCollection<> Class

Summary

public class TConfigurationElementCollection<> : ConfigurationElementCollection, System.Collections.ICollection, System.Collections.IEnumerable

Base collection class for configuration element that can be uniquely identified with a key.

Remarks

Type of the configuration elements stored in the collection.

Constructor Members

NameAccessSummary
TConfigurationElementCollection<>()publicInitializes a new instance of the class.

Property Members

NameAccessSummary

Method Members

NameAccessSummary
Add() : Voidpublic Adds a ConfigurationElement to this ConfigurationElementCollection.
CreateNewElement() : ConfigurationElementprotected Creates a new ConfigurationElement of the appropriate type.
Get() : <>public Returns the ConfigurationElement with the specified key.
GetElementKey() : Objectprotected Gets the element key for a specified configuration element.
Remove() : Voidpublic Removes a ConfigurationElement from the collection.

ExceptionHandlerElementCollection Class

Summary

public class ExceptionHandlerElementCollection : TConfigurationElementCollection, System.Collections.ICollection, System.Collections.IEnumerable

Exception handlers collection of a configuration file.

Remarks

Exception handlers collection of a configuration file.

Constructor Members

NameAccessSummary
ExceptionHandlerElementCollection()publicInitializes a new instance of the class.

Property Members

NameAccessSummary

Method Members

NameAccessSummary
Add() : Voidpublic(from DevInstinct.Configuration.TConfigurationElementCollection<>)
CreateNewElement() : ConfigurationElementprotected(from DevInstinct.Configuration.TConfigurationElementCollection<>) Creates a new ConfigurationElement of the appropriate type.
Get() : ExceptionHandlerElementpublic(from DevInstinct.Configuration.TConfigurationElementCollection<>) Returns the ConfigurationElement with the specified key.
GetElementKey() : Objectprotected(from DevInstinct.Configuration.TConfigurationElementCollection<>) Gets the element key for a specified configuration element.
Remove() : Voidpublic(from DevInstinct.Configuration.TConfigurationElementCollection<>)

NamedConfigurationElement Class

Summary

public class NamedConfigurationElement : ConfigurationElement, DevInstinct.IKeyElement

Simple named element of a configuration file.

Remarks

Simple named element of a configuration file.

Constructor Members

NameAccessSummary
NamedConfigurationElement()publicInitializes a new instance of the class.

Property Members

NameAccessSummary
Name : Stringpublic Gets or sets the name associated with this element.

Method Members

NameAccessSummary

NamedConfigurationElement.PropertyNames Class

Summary

nestedPublic class NamedConfigurationElement.PropertyNames

Contains constants for the names of the configuration properties used by this configuration element.

Remarks

Contains constants for the names of the configuration properties used by this configuration element.

Constructor Members

NameAccessSummary
NamedConfigurationElement.PropertyNames()publicInitializes a new instance of the class.

Field Members

NameAccessSummary
NAME : Stringpublic Name of the name configuration property.

Method Members

NameAccessSummary

ExceptionHandlerElement Class

Summary

public class ExceptionHandlerElement : NamedConfigurationElement, DevInstinct.IKeyElement

Exception handler element of a configuration file.

Remarks

Example when the element is part of a collection. <exceptionHandlers> <add name="Form" type="DevInstinct.Soa.DefaultExceptionHandler, DevInstinct" initializeData="None"/> </exceptionHandlers>

Constructor Members

NameAccessSummary
ExceptionHandlerElement()publicInitializes a new instance of the class.

Property Members

NameAccessSummary
InitializeData : Stringpublic XML attributes containing the initialization data used by the exception handler constructor.
Name : Stringpublic(from DevInstinct.Configuration.NamedConfigurationElement) Gets or sets the name associated with this element.
Type : Stringpublic XML attributes containing the assembly qualified name of the exception handler class.

Method Members

NameAccessSummary

ExceptionHandlerElement.PropertyNames Class

Summary

nestedPublic class ExceptionHandlerElement.PropertyNames : PropertyNames

Contains constants for the names of the configuration properties used by this configuration element.

Remarks

Contains constants for the names of the configuration properties used by this configuration element.

Constructor Members

NameAccessSummary
ExceptionHandlerElement.PropertyNames()publicInitializes a new instance of the class.

Field Members

NameAccessSummary
INITIALIZE_DATA : Stringpublic Name of the initialize data configuration property.
TYPE : Stringpublic Name of the type configuration property.

Method Members

NameAccessSummary

ArgumentValidationElement Class

Summary

public class ArgumentValidationElement : ConfigurationElement

Argument validation element of a configuration file.

Remarks

<argumentValidation enabled="false"/>

Constructor Members

NameAccessSummary
ArgumentValidationElement()publicInitializes a new instance of the class.

Property Members

NameAccessSummary
Enabled : Booleanpublic XML attribute which indicates if argument validation is enabled (true) or not (false).

Method Members

NameAccessSummary

ExceptionHandlersSection Class

Summary

public class ExceptionHandlersSection : ConfigurationSection

Exception handlers section of a configuration file.

Remarks

By default, the section contains the "Default" exception handler, which is an instance of the DevInstinct.DefaultExceptionHandler class in Verbose mode.

Constructor Members

NameAccessSummary
ExceptionHandlersSection()publicInitializes a new instance of the class.

Field Members

NameAccessSummary
SECTION_NAME : Stringpublic Name of the section in the configuration file.

Property Members

NameAccessSummary
Handlers : ExceptionHandlerElementCollectionpublic XML implicit collection of exception handlers elements.

Method Members

NameAccessSummary
InitializeDefault() : Voidprotected Initialize the "Default" exception handler.

ExceptionHandlersSection.PropertyNames Class

Summary

nestedPublic class ExceptionHandlersSection.PropertyNames

Contains constants for the names of the configuration properties used by this configuration element.

Remarks

Contains constants for the names of the configuration properties used by this configuration element.

Constructor Members

NameAccessSummary
ExceptionHandlersSection.PropertyNames()publicInitializes a new instance of the class.

Field Members

NameAccessSummary
COLLECTION : Stringpublic Name of the implicit collection configuration property.

Method Members

NameAccessSummary

XmlNamedElement<> Class

Summary

public class XmlNamedElement<> : System.IComparable<>

Simple named element of a XML serialization-based configuration file.

Remarks

Type of the element.

Constructor Members

NameAccessSummary
XmlNamedElement<>()public Constructor.
XmlNamedElement<>()public Constructor.

Field Members

NameAccessSummary
Name : Stringpublic XML attribute containing the name of the element.

Method Members

NameAccessSummary

XmlSectionElement Class

Summary

public class XmlSectionElement : XmlNamedElement, System.IComparable<>[[DevInstinct.Configuration.XmlNamedElement<>[[DevInstinct.Configuration.XmlSectionElement, DevInstinct, Version=1.0.0.0, Culture=neutral, PublicKeyToken=176698ea059ea153]], DevInstinct, Version=1.0.0.0, Culture=neutral, PublicKeyToken=176698ea059ea153]]

Section element of a XML serialization-based configuration file.

Remarks

Section element of a XML serialization-based configuration file.

Constructor Members

NameAccessSummary
XmlSectionElement()public Constructor.
XmlSectionElement()public Constructor.

Field Members

NameAccessSummary
FileName : Stringpublic XML attribute containing the name of the file for the current section.
Name : Stringpublic(from DevInstinct.Configuration.XmlNamedElement<>) XML attribute containing the name of the element.

Method Members

NameAccessSummary

OptimizationSection Class

Summary

public class OptimizationSection : ConfigurationSection

Optimization section of a configuration file.

Remarks

<optimization> <argumentValidation enabled="false"/> </optimization>

Constructor Members

NameAccessSummary
OptimizationSection()publicInitializes a new instance of the class.

Field Members

NameAccessSummary
SECTION_NAME : Stringpublic Name of the section in the configuration file.

Property Members

NameAccessSummary
ArgumentValidation : ArgumentValidationElementpublic XML element containing information about argument validation optimization.

Method Members

NameAccessSummary

OptimizationSection.PropertyNames Class

Summary

nestedPublic class OptimizationSection.PropertyNames

Contains constants for the names of the configuration properties used by this configuration element.

Remarks

Contains constants for the names of the configuration properties used by this configuration element.

Constructor Members

NameAccessSummary
OptimizationSection.PropertyNames()publicInitializes a new instance of the class.

Field Members

NameAccessSummary
ARGUMENT_VALIDATION : Stringpublic Name of the argument validation configuration property.

Method Members

NameAccessSummary

XmlApplicationSection Class

Summary

public class XmlApplicationSection : XmlNamedElement, System.IComparable<>[[DevInstinct.Configuration.XmlNamedElement<>[[DevInstinct.Configuration.XmlApplicationSection, DevInstinct, Version=1.0.0.0, Culture=neutral, PublicKeyToken=176698ea059ea153]], DevInstinct, Version=1.0.0.0, Culture=neutral, PublicKeyToken=176698ea059ea153]]

Application root section of a XML serialization-based configuration file.

Remarks

<?xml version="1.0" encoding="utf-8"?> <application name="WordApplication" type="Dll" /> </code>

Constructor Members

NameAccessSummary
XmlApplicationSection()public Constructor.
XmlApplicationSection()public Constructor.

Field Members

NameAccessSummary
ApplicationType : ApplicationTypespublic XML attribute containing the type of the application.
Name : Stringpublic(from DevInstinct.Configuration.XmlNamedElement<>) XML attribute containing the name of the element.
Namespace : Stringpublic XML namespace of this section.

Method Members

NameAccessSummary

XmlNamedElementCollection<> Class

Summary

public abstract class XmlNamedElementCollection<>

Base collection class for XML serialization-based configuration elements that can be uniquely identified with a name.

Remarks

Type of the XML serialization-based configuration elements stored in the collection.

Constructor Members

NameAccessSummary
XmlNamedElementCollection<>()public Constructor.

Field Members

NameAccessSummary
_elements : XmlNamedElement{<>}}protected List of XML serialization-based configuration elements.

Method Members

NameAccessSummary
GetElement() : <>public Gets a XML serialization-based configuration element by name.

XmlConfigurationSection Class

Summary

public class XmlConfigurationSection : XmlNamedElementCollection

Alternate root section of a XML serialization-based configuration file structure.

Remarks

XmlMainSection is an alternative to the .NET configuration files when not using the DevInstinct.ApplicationInfo.ApplicationInfoFilename file configuration fix. TODO: enforce schema validation.

Constructor Members

NameAccessSummary
XmlConfigurationSection()publicInitializes a new instance of the class.

Field Members

NameAccessSummary
_elements : XmlSectionElement}}protected(from DevInstinct.Configuration.XmlNamedElementCollection<>) List of XML serialization-based configuration elements.
Namespace : Stringpublic XML namespace of this section.

Property Members

NameAccessSummary
Sections : XmlSectionElement}}public XML collection of section elements.

Method Members

NameAccessSummary
GetElement() : XmlSectionElementpublic(from DevInstinct.Configuration.XmlNamedElementCollection<>) Gets a XML serialization-based configuration element by name.

ApplicationConfiguration Class

Summary

public abstract class ApplicationConfiguration

Provides access to configuration files and configuration sections in one unified class.

Remarks

Provides access to configuration files and configuration sections in one unified class.

Method Members

NameAccessSummary
CreateApplicationSection() : Voidpublic Creates the application configuration file.
GetApplicationSection() : XmlApplicationSectionpublic Returns the application configuration section.
GetConfiguration() : Configurationpublic Opens the configuration file for the current application as a Configuration object.
GetSection() : <>public Returns the specified typed ConfigurationSection object.
GetSection() : <>public Returns the specified typed ConfigurationSection object.

Namespace : DevInstinct.Parsing



DevInstinct.Parsing Type List

Enumerations

TypeSummary
ParsingErrorCodesEnumEnum for the ParsingErrorCodes.resx file.

Classes

TypeSummary
GrammarExpressionNode Grammar node that represents an expression.
GrammarNode Base class for grammar nodes.
GrammarTokenNode Grammar node that represents a token (terminal).
RegexTokenizer Emits tokens from an input string using a regular expression pattern as token-delimiter.
SLRParser Simple LR Parser.
StringToken Token class that stores the token kind and value as strings.
Token<> Generic token class used to store token kind, value and position.


DevInstinct.Parsing Enumerations

ParsingErrorCodesEnum Enumeration

Summary

public enumeration ParsingErrorCodesEnum

Enum for the ParsingErrorCodes.resx file.

Remarks

Generated by DevInstinct Inc.

Enumeration Members

FieldSummary
GrammarDuplicateRules54; Grammar error; duplicate rules: {0}
GrammarInvalidSyntax55; Grammar error; invalid syntax: {0}
GrammarRulesCanBeReduced53; Grammar error; these rules can be reduced: {0}
ParserExpectedEndOfInput56; End of input expected after: {0}
ParserUnexpectedEndOfInput57; End of input unexpected after: {0}
ParserUnexpectedInput52; Unexpected input: {0}


DevInstinct.Parsing Classes

GrammarNode Class

Summary

public abstract class GrammarNode

Base class for grammar nodes.

Remarks

Base class for grammar nodes.

Constructor Members

NameAccessSummary
GrammarNode()public Constructor.

Property Members

NameAccessSummary
Kind : Stringpublic Gets the kind of the grammar node.

Method Members

NameAccessSummary
ToString() : Stringpublic Converts the value of this instance to its equivalent string representation.

GrammarTokenNode Class

Summary

public class GrammarTokenNode : GrammarNode

Grammar node that represents a token (terminal).

Remarks

Grammar node that represents a token (terminal).

Constructor Members

NameAccessSummary
GrammarTokenNode()public Constructor.

Property Members

NameAccessSummary
Kind : Stringpublic(from DevInstinct.Parsing.GrammarNode) Gets the kind of the grammar node.
Token : StringTokenpublic Gets the associated token.

Method Members

NameAccessSummary
ToString() : Stringpublic Converts the value of this instance to its equivalent string representation.

RegexTokenizer Class

Summary

public class RegexTokenizer : System.Collections.IEnumerable

Emits tokens from an input string using a regular expression pattern as token-delimiter.

Remarks

This tokenizer can be used in a foreach statement or by calling GetNextToken.

Constructor Members

NameAccessSummary
RegexTokenizer()public Constructor.
RegexTokenizer()public Constructor.

Method Members

NameAccessSummary
GetEnumerator() : IEnumeratorpublic Returns an enumerator that iterates through the string tokens.
GetNextToken() : StringTokenpublic Gets the next string token in the input string.
Reset() : Voidpublic Resets the tokenizer at the beginning of the input string.

Token<> Class

Summary

public class Token<>

Generic token class used to store token kind, value and position.

Remarks

TKind will usually be string or an enumerated type. TValue will usually be string or byte.

Constructor Members

NameAccessSummary
Token<>()public Constructor.
Token<>()public Constructor.

Property Members

NameAccessSummary
Kind : <>public Gets the kind of token this instance represents.
Position : Int32}public Gets the 0-based position at which the token was found in the original input data. Can be null if unavailable.
Value : <>public Gets the value of the token.

Method Members

NameAccessSummary
ToString() : Stringpublic Converts the value of this instance to its equivalent string representation.

GrammarExpressionNode Class

Summary

public class GrammarExpressionNode : GrammarNode

Grammar node that represents an expression.

Remarks

Grammar node that represents an expression.

Constructor Members

NameAccessSummary
GrammarExpressionNode()public Constructor.

Property Members

NameAccessSummary
Elements : GrammarNode}public Gets the list of elements that make up the expression.
Kind : Stringpublic(from DevInstinct.Parsing.GrammarNode) Gets the kind of the grammar node.

Method Members

NameAccessSummary
ToString() : Stringpublic(from DevInstinct.Parsing.GrammarNode) Converts the value of this instance to its equivalent string representation.

StringToken Class

Summary

public class StringToken : Token

Token class that stores the token kind and value as strings.

Remarks

Mostly used for code readability.

Constructor Members

NameAccessSummary
StringToken()public Constructor.
StringToken()public Constructor.

Property Members

NameAccessSummary
Kind : Stringpublic(from DevInstinct.Parsing.Token<>) Gets the kind of token this instance represents.
Position : Int32}public(from DevInstinct.Parsing.Token<>) Gets the 0-based position at which the token was found in the original input data. Can be null if unavailable.
Value : Stringpublic(from DevInstinct.Parsing.Token<>) Gets the value of the token.

Method Members

NameAccessSummary
ToString() : Stringpublic(from DevInstinct.Parsing.Token<>) Converts the value of this instance to its equivalent string representation.

SLRParser Class

Summary

public class SLRParser

Simple LR Parser.

Remarks

To understand what is a SLR Parser, see http://en.wikipedia.org/wiki/Simple_LR_parser. Note that this implementation is somewhat different from the suggested implementation above.

Constructor Members

NameAccessSummary
SLRParser()public Constructor.

Method Members

NameAccessSummary
Parse() : GrammarNodepublic Parses an input' tokens and produces a grammar tree. Can return null if the input contains no token.

Namespace : DevInstinct.Xml



DevInstinct.Xml Type List

Classes

TypeSummary
XmlValidator Provides schema validation of Xml documents


DevInstinct.Xml Classes

XmlValidator Class

Summary

public abstract class XmlValidator

Provides schema validation of Xml documents

Remarks

Provides schema validation of Xml documents

Method Members

NameAccessSummary
ValidateStream() : Voidpublic Validates the given stream against the given schema.
ValidateStream() : Voidpublic Validates the given stream against the given schemas.
ValidationEventHandler() : Voidpublic Represents the method that handles the ValidationEventArgs.

Namespace : DevInstinct.Web.Services.Protocols



DevInstinct.Web.Services.Protocols Type List

Classes

TypeSummary
SchemaValidationAttributeInitializes a new instance of the class.
ShemaValidationExtensionInitializes a new instance of the class.
SoapSchemaValidationAttribute Enforces schema validation of incoming SOAP messages for the target method.
SoapSchemaValidationExtension Provides schema validation of incoming SOAP messages.
SoapUtil Provides utilities for the SOAP protocol.


DevInstinct.Web.Services.Protocols Classes

ShemaValidationExtension Class

Summary

public class ShemaValidationExtension : SoapExtension

Constructor Members

NameAccessSummary
ShemaValidationExtension()publicInitializes a new instance of the class.

Method Members

NameAccessSummary
GetInitializer() : Objectpublic
GetInitializer() : Objectpublic
Initialize() : Voidpublic
ProcessMessage() : Voidpublic

SchemaValidationAttribute Class

Summary

public class SchemaValidationAttribute : SoapExtensionAttribute

Constructor Members

NameAccessSummary
SchemaValidationAttribute()publicInitializes a new instance of the class.
SchemaValidationAttribute()public

Field Members

NameAccessSummary
Namespace : Stringpublic
SchemaLocation : Stringpublic

Property Members

NameAccessSummary
ExtensionType : Typepublic
Priority : Int32public

Method Members

NameAccessSummary

SoapSchemaValidationExtension Class

Summary

public class SoapSchemaValidationExtension : SoapExtension

Provides schema validation of incoming SOAP messages.

Remarks

Provides schema validation of incoming SOAP messages.

Constructor Members

NameAccessSummary
SoapSchemaValidationExtension()publicInitializes a new instance of the class.

Method Members

NameAccessSummary
GetInitializer() : Objectpublic Initializes data specific to a class implementing an XML Web service at a one time performance cost.
GetInitializer() : Objectpublic Initialize data specific to an XML Web service method using an attribute applied to the XML Web service method at a one time performance cost.
Initialize() : Voidpublic Initializes itself using the data cached in the GetInitializer(LogicalMethodInfo, SoapExtensionAttribute) method.
ProcessMessage() : Voidpublic Receives a message to process at each message stage.

SoapSchemaValidationAttribute Class

Summary

public class SoapSchemaValidationAttribute : SoapExtensionAttribute

Enforces schema validation of incoming SOAP messages for the target method.

Remarks

Enforces schema validation of incoming SOAP messages for the target method.

Constructor Members

NameAccessSummary
SoapSchemaValidationAttribute()publicInitializes a new instance of the class.

Property Members

NameAccessSummary
ExtensionType : Typepublic Gets the type of the SOAP extension.
Priority : Int32public Gets or sets the priority of the SOAP extension.

Method Members

NameAccessSummary

SoapUtil Class

Summary

public abstract class SoapUtil

Provides utilities for the SOAP protocol.

Remarks

Provides utilities for the SOAP protocol.

Method Members

NameAccessSummary
GetEnvelopeSchema() : XmlSchemapublic Returns the SOAP envelope's schema.
GetEnvelopeSchemaStream() : Streampublic Returns the SOAP envelope's schema as a stream.

Namespace : DevInstinct.Resources.Tools



DevInstinct.Resources.Tools Type List

Classes

TypeSummary
EnumResourceBuilder Provides support for strongly-typed enum resources.
EnumResourceEventManager Handles DTE events to keep the Enum resource files synchronized with the resx resource files.
EnumResourceStartValuePicker Form used to get an Enum Resource start value.


DevInstinct.Resources.Tools Classes

EnumResourceBuilder Class

Summary

public class EnumResourceBuilder

Provides support for strongly-typed enum resources.

Remarks

Provides support for strongly-typed enum resources.

Method Members

NameAccessSummary
Create() : Voidpublic Creates an enum resource file for the given resx document.
Create() : Voidpublic Creates an enum resource file for the given resx project item.
Create() : Voidpublic Creates enum resource files for the given selected items.
HasEnumResource() : Booleanpublic Indicates if the given document has an enum resource file associated to it.
HasEnumResource() : Booleanpublic Indicates if the given project item has an enum resource file associated to it.
IsValidResource() : Booleanpublic Indicates if the given document is a valid unlocalized resx file.
IsValidResource() : Booleanpublic Indicates if the given project item is a valid unlocalized resx file.
Rename() : Voidpublic Renames the enum resource file of the given project item.

EnumResourceEventManager Class

Summary

public class EnumResourceEventManager

Handles DTE events to keep the Enum resource files synchronized with the resx resource files.

Remarks

Class not thread-safe. Exceptions catched while handling events are displayed in message boxes.

Constructor Members

NameAccessSummary
EnumResourceEventManager()public Constructor. Makes this Event Manager handle the events of the given DTE.

Method Members

NameAccessSummary

EnumResourceStartValuePicker Class

Summary

public class EnumResourceStartValuePicker : Form, System.ComponentModel.IComponent, System.IDisposable, System.Windows.Forms.IDropTarget, System.ComponentModel.ISynchronizeInvoke, System.Windows.Forms.IWin32Window, System.Windows.Forms.IBindableComponent, System.Windows.Forms.IContainerControl

Form used to get an Enum Resource start value.

Remarks

Form used to get an Enum Resource start value.

Constructor Members

NameAccessSummary
EnumResourceStartValuePicker()publicInitializes a new instance of the class.

Field Members

NameAccessSummary
Value : Int32public The Enum Resource start value.

Property Members

NameAccessSummary

Method Members

NameAccessSummary
Dispose() : Voidprotected