Skip to content
Browse files

Fixed DoxyFile and repaired once again all code styling

  • Loading branch information...
1 parent bf10a6c commit d0ffbc9cf3abaee37ce8576bc2e9aba4cde35ba0 @cmendible committed Jul 24, 2012
Showing with 291 additions and 246 deletions.
  1. +2 −2 CommonAssemblyInfo.cs
  2. +1 −1 Doxyfile
  3. +1 −1 Hexa.Core.NHibernate/Conventions/EnumConvention.cs
  4. +1 −1 Hexa.Core.NHibernate/Conventions/ForeignKeyColumnNames.cs
  5. +1 −1 Hexa.Core.NHibernate/Conventions/ForeignKeyConstraintNames.cs
  6. +1 −1 Hexa.Core.NHibernate/Conventions/NotNullable.cs
  7. +1 −1 Hexa.Core.NHibernate/Conventions/StringLength.cs
  8. +2 −2 Hexa.Core.NHibernate/Conventions/TableNames.cs
  9. +1 −1 Hexa.Core.NHibernate/INotifyPropertyChanged/DataBindingFactory.cs
  10. +1 −1 Hexa.Core.NHibernate/INotifyPropertyChanged/DataBindingInterceptor.cs
  11. +1 −1 Hexa.Core.NHibernate/Listeners/AuditEventListener.cs
  12. +1 −1 Hexa.Core.NHibernate/Listeners/ValidateEventListener.cs
  13. +1 −1 Hexa.Core.NHibernate/Mappings/AuditableRootEntityMap.cs
  14. +1 −1 Hexa.Core.NHibernate/Mappings/BaseClassMap.cs
  15. +1 −1 Hexa.Core.NHibernate/Mappings/EntityMap.cs
  16. +1 −1 Hexa.Core.NHibernate/Mappings/Extensions/MappingExtensions.cs
  17. +1 −1 Hexa.Core.NHibernate/Mappings/RootEntityMap.cs
  18. +21 −2 Hexa.Core.NHibernate/NHConfiguration.cs
  19. +1 −1 Hexa.Core.NHibernate/NHibernateEntitySet.cs
  20. +1 −1 Hexa.Core.NHibernate/NHibernateUnitOfWork.cs
  21. +10 −13 Hexa.Core.NHibernate/NHibernateUnitOfWorkFactory.cs
  22. +1 −1 Hexa.Core.NHibernate/Properties/AssemblyInfo.cs
  23. +1 −1 Hexa.Core.NHibernate/SqlExceptionHandlers/SqlExceptionHandler.cs
  24. +1 −1 Hexa.Core.NHibernate/Transactions/ITransactionWrapper.cs
  25. +1 −1 Hexa.Core.NHibernate/Transactions/NestedTransactionWrapper.cs
  26. +1 −1 Hexa.Core.NHibernate/Transactions/TransactionWrapper.cs
  27. +1 −1 Hexa.Core.NHibernate/UserTypes/GenericWellKnownInstanceType.cs
  28. +1 −1 Hexa.Core.NHibernate/UserTypes/IPAddressType.cs
  29. +1 −1 Hexa.Core.NHibernate/UserTypes/StringToGuid.cs
  30. +1 −1 Hexa.Core.NHibernate/UserTypes/StringToInt.cs
  31. +1 −1 Hexa.Core.NHibernate/UserTypes/TicksAsString.cs
  32. +1 −1 Hexa.Core.NHibernate/UserTypes/XmlType.cs
  33. +2 −2 Hexa.Core.RavenDb/RavenEntitySet.cs
  34. +1 −1 Hexa.Core.RavenDb/RavenUnitOfWork.cs
  35. +1 −1 Hexa.Core.RavenDb/RavenUnitOfWorkFactory.cs
  36. +6 −1 Hexa.Core.Tests/Core.Domain.Tests/BaseRepository.cs
  37. +1 −1 Hexa.Core.Tests/Core.Domain.Tests/BaseRepositoryTestsBase.cs
  38. +1 −1 Hexa.Core.Tests/Core.Domain.Tests/Entity.cs
  39. +1 −1 Hexa.Core.Tests/Core.Domain.Tests/Specifications.cs
  40. +1 −1 Hexa.Core.Tests/Data/Mappings/HumanMap.cs
  41. +1 −1 Hexa.Core.Tests/Data/Repositories/HumanRepository.cs
  42. +1 −1 Hexa.Core.Tests/Domain/Human.cs
  43. +1 −1 Hexa.Core.Tests/Domain/Repositories/IHumanRepository.cs
  44. +1 −1 Hexa.Core.Tests/Extensions/ObjectExtensionsTests.cs
  45. +3 −3 Hexa.Core.Tests/NHibernate/BaseDatabaseTest.cs
  46. +4 −2 Hexa.Core.Tests/NHibernate/FirebirdTests.cs
  47. +3 −1 Hexa.Core.Tests/NHibernate/PostgreSQLTest.cs
  48. +3 −1 Hexa.Core.Tests/NHibernate/SqlCeTests.cs
  49. +4 −2 Hexa.Core.Tests/NHibernate/SqlTests.cs
  50. +1 −1 Hexa.Core.Tests/Pool/Pool.cs
  51. +1 −1 Hexa.Core.Tests/Properties/AssemblyInfo.cs
  52. +4 −2 Hexa.Core.Tests/RavenDb/RavenTests.cs
  53. +1 −1 Hexa.Core/Data/DatabaseManager.cs
  54. +1 −1 Hexa.Core/Data/DbProviderExtensions.cs
  55. +1 −1 Hexa.Core/Data/DbProviders.cs
  56. +1 −1 Hexa.Core/Data/IDatabaseManager.cs
  57. +1 −1 Hexa.Core/Data/SQLScriptHelper.cs
  58. +1 −1 Hexa.Core/Domain/Model/AuditableRootEntity.cs
  59. +1 −1 Hexa.Core/Domain/Model/BaseEntity.cs
  60. +1 −1 Hexa.Core/Domain/Model/Entity.cs
  61. +1 −1 Hexa.Core/Domain/Model/IAuditableEntity.cs
  62. +1 −1 Hexa.Core/Domain/Model/IEntityAuditTrail.cs
  63. +1 −1 Hexa.Core/Domain/Model/RootEntity.cs
  64. +1 −1 Hexa.Core/Domain/Model/ValidatableObject.cs
  65. +1 −1 Hexa.Core/Domain/Model/ValueObject.cs
  66. +1 −1 Hexa.Core/Domain/Repositories/BaseRepository.cs
  67. +2 −2 Hexa.Core/Domain/Repositories/IEntitySet.cs
  68. +1 −1 Hexa.Core/Domain/Repositories/IRepository.cs
  69. +1 −1 Hexa.Core/Domain/Repositories/Inflector.cs
  70. +1 −1 Hexa.Core/Domain/Repositories/MemorySet.cs
  71. +1 −1 Hexa.Core/Domain/Repositories/PagedElements.cs
  72. +1 −1 Hexa.Core/Domain/Services/IAuditTrailFactory.cs
  73. +1 −1 Hexa.Core/Domain/Specification/AndAlsoSpecification.cs
  74. +1 −1 Hexa.Core/Domain/Specification/CompositeSpecification.cs
  75. +1 −1 Hexa.Core/Domain/Specification/DirectSpecification.cs
  76. +1 −1 Hexa.Core/Domain/Specification/ExpressionBuilder.cs
  77. +1 −1 Hexa.Core/Domain/Specification/IOrderBySpecification.cs
  78. +1 −1 Hexa.Core/Domain/Specification/ISpecification.cs
  79. +1 −1 Hexa.Core/Domain/Specification/NotSpecification.cs
  80. +1 −1 Hexa.Core/Domain/Specification/OrElseSpecification.cs
  81. +1 −1 Hexa.Core/Domain/Specification/OrderBySpecification.cs
  82. +1 −1 Hexa.Core/Domain/Specification/ParametersRebinder.cs
  83. +2 −2 Hexa.Core/Domain/Specification/Specification.cs
  84. +1 −1 Hexa.Core/Domain/Specification/SpecificationExtensions.cs
  85. +1 −1 Hexa.Core/Domain/Specification/TrueSpecification.cs
  86. +1 −1 Hexa.Core/Domain/UnitOfWork/IUnitOfWork.cs
  87. +1 −1 Hexa.Core/Domain/UnitOfWork/IUnitOfWorkFactory.cs
  88. +1 −1 Hexa.Core/Domain/UnitOfWork/UnitOfWorkScope.cs
  89. +2 −2 Hexa.Core/Domain/Validation/DataAnnotationsValidator.cs
  90. +1 −1 Hexa.Core/Domain/Validation/Guard.cs
  91. +1 −1 Hexa.Core/Domain/Validation/IValidatable.cs
  92. +1 −1 Hexa.Core/Domain/Validation/IValidator.cs
  93. +1 −1 Hexa.Core/Domain/Validation/ValidationError.cs
  94. +1 −1 Hexa.Core/Domain/Validation/ValidationException.cs
  95. +1 −1 Hexa.Core/Domain/Validation/ValidationInfo/DataAnnotationHelper.cs
  96. +1 −1 Hexa.Core/Domain/Validation/ValidationInfo/DataAnnotationProvider.cs
  97. +1 −1 Hexa.Core/Domain/Validation/ValidationInfo/IEmailValidationInfo.cs
  98. +2 −2 Hexa.Core/Domain/Validation/ValidationInfo/IRangeValidationInfo.cs
  99. +1 −1 Hexa.Core/Domain/Validation/ValidationInfo/IRegExValidationInfo.cs
  100. +1 −1 Hexa.Core/Domain/Validation/ValidationInfo/IRequiredValidationInfo.cs
  101. +1 −1 Hexa.Core/Domain/Validation/ValidationInfo/IValidateTypeValidationInfo.cs
  102. +1 −1 Hexa.Core/Domain/Validation/ValidationInfo/IValidationInfo.cs
  103. +1 −1 Hexa.Core/Domain/Validation/ValidationInfo/IValidationInfoProvider.cs
  104. +1 −1 Hexa.Core/Domain/Validation/ValidationResult.cs
  105. +1 −1 Hexa.Core/Encoding/HexEncodingHelper.cs
  106. +1 −1 Hexa.Core/Exceptions/ConcurrencyException.cs
  107. +1 −1 Hexa.Core/Exceptions/ConstraintException.cs
  108. +1 −1 Hexa.Core/Exceptions/CoreException.cs
  109. +1 −1 Hexa.Core/Exceptions/DatabaseException.cs
  110. +1 −1 Hexa.Core/Exceptions/InternalException.cs
  111. +1 −1 Hexa.Core/Extensions/EnumExtensions.cs
  112. +1 −1 Hexa.Core/Extensions/GuidExtensions.cs
  113. +1 −1 Hexa.Core/Extensions/ObjectExtensions.cs
  114. +1 −1 Hexa.Core/Extensions/ReflectionExtensions.cs
  115. +15 −15 Hexa.Core/Extensions/StringExtensions.cs
  116. +5 −6 Hexa.Core/GlobalSuppressions.cs
  117. +1 −1 Hexa.Core/Globalization/Gettext.cs
  118. +1 −1 Hexa.Core/Globalization/GettextHelper.cs
  119. +1 −1 Hexa.Core/IoC/ApplicationContext.cs
  120. +1 −1 Hexa.Core/IoC/DictionaryServicesContainer.cs
  121. +1 −1 Hexa.Core/IoC/IoCContainer.cs
  122. +35 −26 Hexa.Core/IoC/ServiceLocator.cs
  123. +1 −1 Hexa.Core/Linq/PagingExtensions.cs
  124. +1 −1 Hexa.Core/Logging/ILogger.cs
  125. +1 −1 Hexa.Core/Logging/ILoggerFactory.cs
  126. +1 −1 Hexa.Core/Logging/Log4NetLogger.cs
  127. +1 −1 Hexa.Core/Logging/Log4NetLoggerFactory.cs
  128. +1 −1 Hexa.Core/Pool/Pool.cs
  129. +1 −1 Hexa.Core/Printer/PrinterHelper.cs
  130. +1 −1 Hexa.Core/Properties/AssemblyInfo.cs
  131. +1 −1 Hexa.Core/Security/CertificateHelper.cs
  132. +1 −1 Hexa.Core/Security/CoreIdentity.cs
  133. +1 −1 Hexa.Core/Security/CorePrincipal.cs
  134. +1 −1 Hexa.Core/Security/ICoreIdentity.cs
  135. +1 −1 Hexa.Core/ServiceModel/ErrorHandling/ErrorBehaviorAttribute.cs
  136. +2 −2 Hexa.Core/ServiceModel/Security/AuthorizationManager.cs
  137. +1 −1 Hexa.Core/ServiceModel/Security/BaseAuthorizationPolicy.cs
  138. +1 −1 Hexa.Core/ServiceModel/Security/BaseX509AuthorizationPolicy.cs
  139. +1 −1 Hexa.Core/ServiceModel/Security/EvaluationContextExtensions.cs
  140. +1 −1 Hexa.Core/ServiceModel/Security/ServiceSecurityContextExtensions.cs
  141. +1 −1 Hexa.Core/ServiceModel/ServiceProxyHelper.cs
  142. +1 −1 Hexa.Core/Web/Exceptions/RequestLengthException.cs
  143. +1 −1 Hexa.Core/Web/Seo/ISeoSiteMapBuilderService.cs
  144. +1 −1 Hexa.Core/Web/Seo/SeoSiteMapBuilderService.cs
  145. +2 −2 Hexa.Core/Web/UI/Ajax/JQGridHelper.cs
  146. +1 −1 Hexa.Core/Web/UI/BasePage.cs
  147. +1 −1 Hexa.Core/Web/UI/BaseUserControl.cs
  148. +1 −1 Hexa.Core/Web/UI/Controls/CachedImageService.cs
  149. +1 −1 Hexa.Core/Web/UI/Controls/DynamicImage.cs
  150. +1 −1 Hexa.Core/Web/UI/Controls/GridView.cs
  151. +1 −1 Hexa.Core/Web/UI/ExpressionBuilder/ExpressionBuilder.cs
  152. +1 −1 Hexa.Core/Web/UI/Extensions/ControlExtensions.cs
  153. +1 −1 Hexa.Core/Web/UI/Extensions/LinqExtensions.cs
  154. +1 −1 Hexa.Core/Web/UI/Extensions/PageExtensions.cs
  155. +1 −1 Hexa.Core/Web/UI/Style.cs
  156. +1 −1 Hexa.Core/Web/UI/UrlResolver.cs
  157. +1 −1 Hexa.Core/Web/UI/Validations/Controls/Converters/BaseConverter.cs
  158. +1 −1 Hexa.Core/Web/UI/Validations/Controls/Converters/EmailConverter.cs
  159. +1 −1 Hexa.Core/Web/UI/Validations/Controls/Converters/RangeConverter.cs
  160. +1 −1 Hexa.Core/Web/UI/Validations/Controls/Converters/RegularExpressionConverter.cs
  161. +1 −1 Hexa.Core/Web/UI/Validations/Controls/Converters/RequiredConverter.cs
  162. +1 −1 Hexa.Core/Web/UI/Validations/Controls/ExtendeRequieredFieldValidator.cs
  163. +1 −1 Hexa.Core/Web/UI/Validations/Controls/ExtendedRangeValidator.cs
  164. +1 −1 Hexa.Core/Web/UI/Validations/Controls/ExtendedRegularExpressionValidator.cs
  165. +1 −1 Hexa.Core/Web/UI/Validations/Controls/InvalidValidator.cs
  166. +1 −1 Hexa.Core/Web/UI/Validations/Controls/WebValidationHelper.cs
  167. +4 −2 Hexa.Core/Windows/Mvvm/ObservableObject.cs
  168. +4 −2 Hexa.Core/Windows/Mvvm/PropertySupport.cs
  169. +3 −1 Hexa.Core/Windows/Mvvm/RelayCommand.cs
  170. +1 −1 Hexa.Core/Xml/Transform/Transformer.cs
  171. +1 −1 Hexa.Core/Xml/Validation/Resolver.cs
  172. +2 −2 Hexa.Core/Xml/Validation/Validator.cs
View
4 CommonAssemblyInfo.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
@@ -21,4 +21,4 @@
[assembly: AssemblyVersion("3.0.0.1")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyDelaySign(false)]
-[assembly: NeutralResourcesLanguage("en-US")]
+[assembly: NeutralResourcesLanguage("en-US")]
View
2 Doxyfile
@@ -25,7 +25,7 @@ DOXYFILE_ENCODING = UTF-8
# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
# by quotes) that should identify the project.
-PROJECT_NAME =
+PROJECT_NAME = Hexa.Core
# The PROJECT_NUMBER tag can be used to enter a project or revision number.
# This could be handy for archiving the generated documentation or
View
2 Hexa.Core.NHibernate/Conventions/EnumConvention.cs
@@ -40,4 +40,4 @@ public void Apply(IPropertyInstance instance)
#endregion Methods
}
-}
+}
View
2 Hexa.Core.NHibernate/Conventions/ForeignKeyColumnNames.cs
@@ -52,4 +52,4 @@ protected override string GetKeyName(Member property, Type type)
#endregion Methods
}
-}
+}
View
2 Hexa.Core.NHibernate/Conventions/ForeignKeyConstraintNames.cs
@@ -45,4 +45,4 @@ public void Apply(IManyToOneInstance instance)
#endregion Methods
}
-}
+}
View
2 Hexa.Core.NHibernate/Conventions/NotNullable.cs
@@ -43,4 +43,4 @@ public void Apply(IPropertyInstance target)
#endregion Methods
}
-}
+}
View
2 Hexa.Core.NHibernate/Conventions/StringLength.cs
@@ -43,4 +43,4 @@ public void Apply(IPropertyInstance target)
#endregion Methods
}
-}
+}
View
4 Hexa.Core.NHibernate/Conventions/TableNames.cs
@@ -1,4 +1,4 @@
-namespace Hexa.Core.Domain
+namespace Hexa.Core.Domain
{
using FluentNHibernate.Conventions;
using FluentNHibernate.Conventions.AcceptanceCriteria;
@@ -48,4 +48,4 @@ public void Apply(IClassInstance instance)
#endregion Methods
}
-}
+}
View
2 Hexa.Core.NHibernate/INotifyPropertyChanged/DataBindingFactory.cs
@@ -108,4 +108,4 @@ public void Intercept(IInvocation invocation)
#endregion Nested Types
}
-}
+}
View
2 Hexa.Core.NHibernate/INotifyPropertyChanged/DataBindingInterceptor.cs
@@ -45,4 +45,4 @@ public override object Instantiate(string clazz, EntityMode entityMode, object i
#endregion Methods
}
-}
+}
View
2 Hexa.Core.NHibernate/Listeners/AuditEventListener.cs
@@ -146,4 +146,4 @@ private static IEnumerable<int> _GetAdditionalDirtyProperties(FlushEntityEvent @
#endregion Methods
}
-}
+}
View
2 Hexa.Core.NHibernate/Listeners/ValidateEventListener.cs
@@ -102,4 +102,4 @@ private static void Validate(object entity)
#endregion Other
}
-}
+}
View
2 Hexa.Core.NHibernate/Mappings/AuditableRootEntityMap.cs
@@ -63,4 +63,4 @@ public AuditableRootEntityMap()
#endregion Constructors
}
-}
+}
View
2 Hexa.Core.NHibernate/Mappings/BaseClassMap.cs
@@ -52,4 +52,4 @@ protected Dialect Dialect
#endregion Properties
}
-}
+}
View
2 Hexa.Core.NHibernate/Mappings/EntityMap.cs
@@ -47,4 +47,4 @@ public EntityMap()
#endregion Constructors
}
-}
+}
View
2 Hexa.Core.NHibernate/Mappings/Extensions/MappingExtensions.cs
@@ -64,4 +64,4 @@ private static PropertyPart TimePartWithDatabaseDefault<TEntity>(PropertyPart da
#endregion Methods
}
-}
+}
View
2 Hexa.Core.NHibernate/Mappings/RootEntityMap.cs
@@ -53,4 +53,4 @@ public RootEntityMap()
#endregion Constructors
}
-}
+}
View
23 Hexa.Core.NHibernate/NHConfiguration.cs
@@ -20,13 +20,20 @@
namespace Hexa.Core
{
using System.ComponentModel.Composition;
+
using NHibernate.Cfg;
[Export(typeof(NHConfiguration))]
public class NHConfiguration
{
+ #region Fields
+
static Configuration _configuration;
+ #endregion Fields
+
+ #region Constructors
+
public NHConfiguration()
{
}
@@ -36,6 +43,18 @@ public NHConfiguration(Configuration configuration)
_configuration = configuration;
}
- public Configuration Value { get { return _configuration; } }
+ #endregion Constructors
+
+ #region Properties
+
+ public Configuration Value
+ {
+ get
+ {
+ return _configuration;
+ }
+ }
+
+ #endregion Properties
}
-}
+}
View
2 Hexa.Core.NHibernate/NHibernateEntitySet.cs
@@ -185,4 +185,4 @@ public void ModifyObject(TEntity entity)
#endregion Methods
}
-}
+}
View
2 Hexa.Core.NHibernate/NHibernateUnitOfWork.cs
@@ -224,4 +224,4 @@ public void Detach(OperationContext owner)
#endregion Nested Types
}
-}
+}
View
23 Hexa.Core.NHibernate/NHibernateUnitOfWorkFactory.cs
@@ -155,32 +155,31 @@ public sealed class NHibernateUnitOfWorkFactory : IUnitOfWorkFactory, IDatabaseM
_builtConfiguration = cfg.BuildConfiguration();
_builtConfiguration.SetProperty(Environment.ProxyFactoryFactoryClass,
- typeof(ProxyFactoryFactory).
- AssemblyQualifiedName);
+ typeof(ProxyFactoryFactory).
+ AssemblyQualifiedName);
#region Add Listeners to NHibernate pipeline....
_builtConfiguration.SetListeners(ListenerType.FlushEntity,
new IFlushEntityEventListener[] {new AuditFlushEntityEventListener()});
_builtConfiguration.SetListeners(ListenerType.PreInsert,
- _builtConfiguration.EventListeners.PreInsertEventListeners.Concat(
- new IPreInsertEventListener[]
+ _builtConfiguration.EventListeners.PreInsertEventListeners.Concat(
+ new IPreInsertEventListener[]
{new ValidateEventListener(), new AuditEventListener()}).
- ToArray());
+ ToArray());
_builtConfiguration.SetListeners(ListenerType.PreUpdate,
- _builtConfiguration.EventListeners.PreUpdateEventListeners.Concat(
- new IPreUpdateEventListener[]
+ _builtConfiguration.EventListeners.PreUpdateEventListeners.Concat(
+ new IPreUpdateEventListener[]
{new ValidateEventListener(), new AuditEventListener()}).
- ToArray());
+ ToArray());
#endregion
}
internal NHibernateUnitOfWorkFactory()
- {
-
+ {
}
#endregion Constructors
@@ -274,6 +273,4 @@ private void _CreateSessionFactory()
#endregion Methods
}
-
-
-}
+}
View
2 Hexa.Core.NHibernate/Properties/AssemblyInfo.cs
@@ -10,4 +10,4 @@
[assembly: AssemblyProduct("Hexa.Core.NHibernate")]
// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("818c0d20-aadd-45f7-ada1-b69f7c9c1c21")]
+[assembly: Guid("818c0d20-aadd-45f7-ada1-b69f7c9c1c21")]
View
2 Hexa.Core.NHibernate/SqlExceptionHandlers/SqlExceptionHandler.cs
@@ -98,4 +98,4 @@ private static string _ParseConstraintName(string message)
#endregion Methods
}
-}
+}
View
2 Hexa.Core.NHibernate/Transactions/ITransactionWrapper.cs
@@ -10,4 +10,4 @@ public interface ITransactionWrapper
#endregion Methods
}
-}
+}
View
2 Hexa.Core.NHibernate/Transactions/NestedTransactionWrapper.cs
@@ -22,4 +22,4 @@ public override void Commit()
#endregion Methods
}
-}
+}
View
2 Hexa.Core.NHibernate/Transactions/TransactionWrapper.cs
@@ -42,4 +42,4 @@ public void Rollback()
#endregion Methods
}
-}
+}
View
2 Hexa.Core.NHibernate/UserTypes/GenericWellKnownInstanceType.cs
@@ -138,4 +138,4 @@ public object Replace(object original, object target, object owner)
#endregion Methods
}
-}
+}
View
2 Hexa.Core.NHibernate/UserTypes/IPAddressType.cs
@@ -108,4 +108,4 @@ public object Replace(object original, object target, object owner)
#endregion Methods
}
-}
+}
View
2 Hexa.Core.NHibernate/UserTypes/StringToGuid.cs
@@ -106,4 +106,4 @@ public object Replace(object original, object target, object owner)
#endregion Methods
}
-}
+}
View
2 Hexa.Core.NHibernate/UserTypes/StringToInt.cs
@@ -106,4 +106,4 @@ public object Replace(object original, object target, object owner)
#endregion Methods
}
-}
+}
View
2 Hexa.Core.NHibernate/UserTypes/TicksAsString.cs
@@ -107,4 +107,4 @@ public object Seed(ISessionImplementor session)
#endregion Methods
}
-}
+}
View
2 Hexa.Core.NHibernate/UserTypes/XmlType.cs
@@ -116,4 +116,4 @@ public object Replace(object original, object target, object owner)
#endregion Methods
}
-}
+}
View
4 Hexa.Core.RavenDb/RavenEntitySet.cs
@@ -44,7 +44,7 @@ public RavenEntitySet(IDocumentSession session)
{
this._session = session;
this._set = this._session.Query<TEntity>()
- .Customize(x => x.WaitForNonStaleResultsAsOfNow());
+ .Customize(x => x.WaitForNonStaleResultsAsOfNow());
}
#endregion Constructors
@@ -161,4 +161,4 @@ public void ModifyObject(TEntity entity)
#endregion Methods
}
-}
+}
View
2 Hexa.Core.RavenDb/RavenUnitOfWork.cs
@@ -72,4 +72,4 @@ public void RollbackChanges()
#endregion Methods
}
-}
+}
View
2 Hexa.Core.RavenDb/RavenUnitOfWorkFactory.cs
@@ -84,4 +84,4 @@ public void ValidateDatabaseSchema()
#endregion Methods
}
-}
+}
View
7 Hexa.Core.Tests/Core.Domain.Tests/BaseRepository.cs
@@ -21,10 +21,15 @@ namespace Hexa.Core.Domain.Tests
using System.Linq;
using Core.Tests;
+
using Logging;
+
using NUnit.Framework;
+
using Rhino.Mocks;
+
using Specification;
+
using SL = Microsoft.Practices.ServiceLocation;
/// <summary>
@@ -693,4 +698,4 @@ private IUnitOfWork _MockUnitOfWork()
#endregion Methods
}
-}
+}
View
2 Hexa.Core.Tests/Core.Domain.Tests/BaseRepositoryTestsBase.cs
@@ -535,4 +535,4 @@ public void TearDown()
#endregion Methods
}
-}
+}
View
2 Hexa.Core.Tests/Core.Domain.Tests/Entity.cs
@@ -37,4 +37,4 @@ public string SampleProperty
#endregion Properties
}
-}
+}
View
2 Hexa.Core.Tests/Core.Domain.Tests/Specifications.cs
@@ -343,4 +343,4 @@ public void TrueSpecification_Creation_Test()
#endregion Methods
}
-}
+}
View
2 Hexa.Core.Tests/Data/Mappings/HumanMap.cs
@@ -17,4 +17,4 @@ public HumanMap()
#endregion Constructors
}
-}
+}
View
2 Hexa.Core.Tests/Data/Repositories/HumanRepository.cs
@@ -22,4 +22,4 @@ public HumanRepository(ILoggerFactory loggerFactory)
#endregion Constructors
}
-}
+}
View
2 Hexa.Core.Tests/Domain/Human.cs
@@ -26,4 +26,4 @@ public virtual string Name
#endregion Properties
}
-}
+}
View
2 Hexa.Core.Tests/Domain/Repositories/IHumanRepository.cs
@@ -5,4 +5,4 @@ namespace Hexa.Core.Tests.Domain
public interface IHumanRepository : IRepository<Human>
{
}
-}
+}
View
2 Hexa.Core.Tests/Extensions/ObjectExtensionsTests.cs
@@ -20,4 +20,4 @@ public void DeepClone()
#endregion Methods
}
-}
+}
View
6 Hexa.Core.Tests/NHibernate/BaseDatabaseTest.cs
@@ -2,10 +2,10 @@ namespace Hexa.Core.Tests.Sql
{
using System;
using System.Collections.Generic;
- using System.Linq;
- using System.Threading;
using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
+ using System.Linq;
+ using System.Threading;
using Core.Data;
using Core.Domain;
@@ -222,4 +222,4 @@ private Human _Add_Human()
#endregion Methods
}
-}
+}
View
6 Hexa.Core.Tests/NHibernate/FirebirdTests.cs
@@ -1,4 +1,5 @@
-#if !MONO
+#if !MONO
+
namespace Hexa.Core.Tests.Sql
{
using System.Configuration;
@@ -21,10 +22,11 @@ protected override string ConnectionString()
protected override NHibernateUnitOfWorkFactory CreateNHContextFactory()
{
return new NHibernateUnitOfWorkFactory(DbProvider.Firebird, ConnectionString(), string.Empty, typeof(Entity).Assembly,
- ApplicationContext.Container);
+ ApplicationContext.Container);
}
#endregion Methods
}
}
+
#endif
View
4 Hexa.Core.Tests/NHibernate/PostgreSQLTest.cs
@@ -1,4 +1,5 @@
-#if MONO
+#if MONO
+
namespace Hexa.Core.Mono.Tests
{
using Data;
@@ -76,4 +77,5 @@ public void SimpleTest()
#endregion Methods
}
}
+
#endif
View
4 Hexa.Core.Tests/NHibernate/SqlCeTests.cs
@@ -1,4 +1,5 @@
-#if !MONO
+#if !MONO
+
namespace Hexa.Core.Tests.Sql
{
using System.Configuration;
@@ -26,4 +27,5 @@ protected override NHibernateUnitOfWorkFactory CreateNHContextFactory()
#endregion Methods
}
}
+
#endif
View
6 Hexa.Core.Tests/NHibernate/SqlTests.cs
@@ -1,4 +1,5 @@
-#if !MONO
+#if !MONO
+
namespace Hexa.Core.Tests.Sql
{
using System.Configuration;
@@ -21,10 +22,11 @@ protected override string ConnectionString()
protected override NHibernateUnitOfWorkFactory CreateNHContextFactory()
{
return new NHibernateUnitOfWorkFactory(DbProvider.MsSqlProvider, ConnectionString(), string.Empty,
- typeof(Entity).Assembly, ApplicationContext.Container);
+ typeof(Entity).Assembly, ApplicationContext.Container);
}
#endregion Methods
}
}
+
#endif
View
2 Hexa.Core.Tests/Pool/Pool.cs
@@ -92,4 +92,4 @@ public void ReleaseObject()
#endregion Methods
}
-}
+}
View
2 Hexa.Core.Tests/Properties/AssemblyInfo.cs
@@ -11,4 +11,4 @@
[assembly: AssemblyProduct("Hexa.Core.Tests")]
// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("c8410f4a-ca1d-4643-8cd3-2b5e8b5d9982")]
+[assembly: Guid("c8410f4a-ca1d-4643-8cd3-2b5e8b5d9982")]
View
6 Hexa.Core.Tests/RavenDb/RavenTests.cs
@@ -1,4 +1,5 @@
-#if !MONO
+#if !MONO
+
namespace Hexa.Core.Tests.Raven
{
using System;
@@ -166,4 +167,5 @@ private Human _Add_Human()
#endregion Methods
}
}
-#endif
+
+#endif
View
2 Hexa.Core/Data/DatabaseManager.cs
@@ -423,4 +423,4 @@ private void _DropDatabase(DbProviderFactory provider, string connectionString,
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Data/DbProviderExtensions.cs
@@ -55,4 +55,4 @@ public static object ExecuteScalar(this DbProviderFactory provider, string conne
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Data/DbProviders.cs
@@ -24,4 +24,4 @@ public enum DbProvider
}
#endregion Enumerations
-}
+}
View
2 Hexa.Core/Data/IDatabaseManager.cs
@@ -33,4 +33,4 @@ public interface IDatabaseManager
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Data/SQLScriptHelper.cs
@@ -93,4 +93,4 @@ private static string[] GetCommandsFromScript(string script)
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Model/AuditableRootEntity.cs
@@ -56,4 +56,4 @@ public virtual string UpdatedBy
#endregion Properties
}
-}
+}
View
2 Hexa.Core/Domain/Model/BaseEntity.cs
@@ -242,4 +242,4 @@ protected set
#endregion Properties
}
-}
+}
View
2 Hexa.Core/Domain/Model/Entity.cs
@@ -10,4 +10,4 @@ namespace Hexa.Core.Domain
public class Entity<TEntity> : BaseEntityWithId<TEntity>
{
}
-}
+}
View
2 Hexa.Core/Domain/Model/IAuditableEntity.cs
@@ -51,4 +51,4 @@ string UpdatedBy
#endregion Properties
}
-}
+}
View
2 Hexa.Core/Domain/Model/IEntityAuditTrail.cs
@@ -63,4 +63,4 @@ DateTime UpdatedAt
#endregion Properties
}
-}
+}
View
2 Hexa.Core/Domain/Model/RootEntity.cs
@@ -38,4 +38,4 @@ public virtual string Version
#endregion Properties
}
-}
+}
View
2 Hexa.Core/Domain/Model/ValidatableObject.cs
@@ -73,4 +73,4 @@ public virtual IEnumerable<ValidationError> Validate()
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Model/ValueObject.cs
@@ -272,4 +272,4 @@ private IEnumerable<FieldInfo> GetFields(object obj)
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Repositories/BaseRepository.cs
@@ -421,4 +421,4 @@ public virtual void Remove(TEntity item)
#endregion Methods
}
-}
+}
View
4 Hexa.Core/Domain/Repositories/IEntitySet.cs
@@ -49,12 +49,12 @@ public interface IEntitySet<TEntity> : IQueryable<TEntity>
IEntitySet<TEntity> Include(Expression<Func<TEntity, object>> path, Expression<Func<TEntity, bool>> filter);
IEntitySet<TEntity> Include<S>(
- Expression<Func<TEntity, object>> path,
+ Expression<Func<TEntity, object>> path,
Expression<Func<TEntity, bool>> filter,
Expression<Func<TEntity, S>> orderByExpression);
void ModifyObject(TEntity entity);
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Repositories/IRepository.cs
@@ -148,4 +148,4 @@ IUnitOfWork UnitOfWork
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Repositories/Inflector.cs
@@ -328,4 +328,4 @@ public string Apply(string word)
#endregion Nested Types
}
-}
+}
View
2 Hexa.Core/Domain/Repositories/MemorySet.cs
@@ -215,4 +215,4 @@ public void ModifyObject(TEntity entity)
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Repositories/PagedElements.cs
@@ -60,4 +60,4 @@ public int TotalPages(int pageSize)
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Services/IAuditTrailFactory.cs
@@ -32,4 +32,4 @@ public interface IAuditTrailFactory
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Specification/AndAlsoSpecification.cs
@@ -95,4 +95,4 @@ public override ISpecification<T> RightSideSpecification
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Specification/CompositeSpecification.cs
@@ -38,4 +38,4 @@ public abstract class CompositeSpecification<TEntity> : Specification<TEntity>
#endregion Properties
}
-}
+}
View
2 Hexa.Core/Domain/Specification/DirectSpecification.cs
@@ -60,4 +60,4 @@ public DirectSpecification(Expression<Func<TEntity, bool>> matchingCriteria)
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Specification/ExpressionBuilder.cs
@@ -73,4 +73,4 @@ public static class ExpressionBuilder
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Specification/IOrderBySpecification.cs
@@ -37,4 +37,4 @@ public static class OrderBySpecificationExtensions
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Specification/ISpecification.cs
@@ -36,4 +36,4 @@ public interface ISpecification<TEntity>
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Specification/NotSpecification.cs
@@ -75,4 +75,4 @@ public NotSpecification(Expression<Func<TEntity, bool>> originalSpecification)
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Specification/OrElseSpecification.cs
@@ -95,4 +95,4 @@ public override ISpecification<T> RightSideSpecification
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Specification/OrderBySpecification.cs
@@ -150,4 +150,4 @@ public IOrderedQueryable<TEntity> ApplyOrderBy(IQueryable<TEntity> query)
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Specification/ParametersRebinder.cs
@@ -72,4 +72,4 @@ protected override Expression VisitParameter(ParameterExpression p)
#endregion Methods
}
-}
+}
View
4 Hexa.Core/Domain/Specification/Specification.cs
@@ -1,4 +1,4 @@
-// ===================================================================================
+// ===================================================================================
// Microsoft Developer & Platform Evangelism
// ===================================================================================
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
@@ -92,4 +92,4 @@ public abstract class Specification<TEntity> : ISpecification<TEntity>
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Specification/SpecificationExtensions.cs
@@ -32,4 +32,4 @@ public static class SpecificationExtensions
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Specification/TrueSpecification.cs
@@ -35,4 +35,4 @@ public class TrueSpecification<TEntity> : Specification<TEntity>
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/UnitOfWork/IUnitOfWork.cs
@@ -51,4 +51,4 @@ IEntitySet<TEntity> CreateSet<TEntity>()
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/UnitOfWork/IUnitOfWorkFactory.cs
@@ -27,4 +27,4 @@ public interface IUnitOfWorkFactory
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/UnitOfWork/UnitOfWorkScope.cs
@@ -158,4 +158,4 @@ public void Detach(OperationContext owner)
#endregion Nested Types
}
-}
+}
View
4 Hexa.Core/Domain/Validation/DataAnnotationsValidator.cs
@@ -21,8 +21,8 @@ namespace Hexa.Core.Validation
{
using System;
using System.Collections.Generic;
- using System.ComponentModel.Composition;
using System.ComponentModel;
+ using System.ComponentModel.Composition;
using System.ComponentModel.DataAnnotations;
using System.Linq;
@@ -70,4 +70,4 @@ public ValidationResult Validate(object instance)
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Validation/Guard.cs
@@ -212,4 +212,4 @@ public static void TypeOf<TType>(object instance, string message)
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Validation/IValidatable.cs
@@ -32,4 +32,4 @@ public interface IValidatable
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Validation/IValidator.cs
@@ -41,4 +41,4 @@ public interface IValidator<TEntity>
public interface IValidator : IValidator<object>
{
}
-}
+}
View
2 Hexa.Core/Domain/Validation/ValidationError.cs
@@ -168,4 +168,4 @@ public override string ToString()
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Validation/ValidationException.cs
@@ -76,4 +76,4 @@ public IEnumerable<ValidationError> ValidationErrors
#endregion Properties
}
-}
+}
View
2 Hexa.Core/Domain/Validation/ValidationInfo/DataAnnotationHelper.cs
@@ -118,4 +118,4 @@ private static IValidationInfo ConvertDataAnnotation<TEntity>(ValidationAttribut
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Validation/ValidationInfo/DataAnnotationProvider.cs
@@ -51,4 +51,4 @@ public IList<IValidationInfo> GetValidationInfo(string propertyName)
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Validation/ValidationInfo/IEmailValidationInfo.cs
@@ -84,4 +84,4 @@ private static string DefaultMessage<TEntity>(string propertyName, string error)
#endregion Methods
}
-}
+}
View
4 Hexa.Core/Domain/Validation/ValidationInfo/IRangeValidationInfo.cs
@@ -122,7 +122,7 @@ public RangeValidationInfo(string propertyName, string error, double minimum, do
/// <param name="maximum">The maximum.</param>
public RangeValidationInfo(string propertyName, string error, DateTime minimum, DateTime maximum)
: base(propertyName,
- DefaultMessage<TEntity>(propertyName, error, minimum.ToShortDateString(), maximum.ToShortDateString()))
+ DefaultMessage<TEntity>(propertyName, error, minimum.ToShortDateString(), maximum.ToShortDateString()))
{
this.minimum = minimum;
this.maximum = maximum;
@@ -190,4 +190,4 @@ private static string DefaultMessage<TEntity>(string propertyName, string error,
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Validation/ValidationInfo/IRegExValidationInfo.cs
@@ -113,4 +113,4 @@ private static string DefaultMessage<TEntity>(string propertyName, string error)
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Validation/ValidationInfo/IRequiredValidationInfo.cs
@@ -77,4 +77,4 @@ private static string DefaultMessage<TEntity>(string propertyName, string error)
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Validation/ValidationInfo/IValidateTypeValidationInfo.cs
@@ -80,4 +80,4 @@ private static string DefaultMessage<TEntity>(string propertyName, string error)
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Domain/Validation/ValidationInfo/IValidationInfo.cs
@@ -97,4 +97,4 @@ public virtual PropertyInfo PropertyInfo
#endregion Properties
}
-}
+}
View
2 Hexa.Core/Domain/Validation/ValidationInfo/IValidationInfoProvider.cs
@@ -53,4 +53,4 @@ public interface IValidationInfoProvider
public interface IValidationInfoProvider<TEntity> : IValidationInfoProvider
{
}
-}
+}
View
2 Hexa.Core/Domain/Validation/ValidationResult.cs
@@ -113,4 +113,4 @@ public void RemoveError(ValidationError error)
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Encoding/HexEncodingHelper.cs
@@ -166,4 +166,4 @@ private static bool IsHexDigit(char c)
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Exceptions/ConcurrencyException.cs
@@ -96,4 +96,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Exceptions/ConstraintException.cs
@@ -96,4 +96,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Exceptions/CoreException.cs
@@ -116,4 +116,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Exceptions/DatabaseException.cs
@@ -91,4 +91,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Exceptions/InternalException.cs
@@ -91,4 +91,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Extensions/EnumExtensions.cs
@@ -37,4 +37,4 @@ var attributes
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Extensions/GuidExtensions.cs
@@ -172,4 +172,4 @@ private static bool __IsEmptyOrNull(this Guid? value)
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Extensions/ObjectExtensions.cs
@@ -66,4 +66,4 @@ public static T DeepClone<T>(this T source)
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Extensions/ReflectionExtensions.cs
@@ -20,4 +20,4 @@ public static bool IsSubclassOfGeneric(this Type source, Type generic)
#endregion Methods
}
-}
+}
View
30 Hexa.Core/Extensions/StringExtensions.cs
@@ -1,4 +1,4 @@
-#region Header
+#region Header
// ===================================================================================
// Copyright 2010 HexaSystems Corporation
@@ -67,6 +67,19 @@ private static string CalculateHash(string input, HashAlgorithm hashAlgorithm)
#endregion Methods
}
+ public static class HtmlHelper
+ {
+ #region Methods
+
+ public static string StripHtml(this string text)
+ {
+ Regex reg = new Regex("<[^>]+>", RegexOptions.IgnoreCase);
+ return reg.Replace(text, "");
+ }
+
+ #endregion Methods
+ }
+
public static class StringSlugExtension
{
#region Fields
@@ -149,17 +162,4 @@ private static string _StrTr(this string source, Dictionary<string, string> repl
#endregion Methods
}
-
- public static class HtmlHelper
- {
- #region Methods
-
- public static string StripHtml(this string text)
- {
- Regex reg = new Regex("<[^>]+>", RegexOptions.IgnoreCase);
- return reg.Replace(text, "");
- }
-
- #endregion Methods
- }
-}
+}
View
11 Hexa.Core/GlobalSuppressions.cs
@@ -1,13 +1,12 @@
-// This file is used by Code Analysis to maintain SuppressMessage
+// This file is used by Code Analysis to maintain SuppressMessage
// attributes that are applied to this project.
-// Project-level suppressions either have no target or are given
+// Project-level suppressions either have no target or are given
// a specific target and scoped to a namespace, type, member, etc.
//
-// To add a suppression to this file, right-click the message in the
-// Error List, point to "Suppress Message(s)", and click
+// To add a suppression to this file, right-click the message in the
+// Error List, point to "Suppress Message(s)", and click
// "In Project Suppression File".
// You do not need to add suppressions to this file manually.
-
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1020:AvoidNamespacesWithFewTypes", Scope = "namespace", Target = "System.Reflection")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1020:AvoidNamespacesWithFewTypes", Scope = "namespace", Target = "System.Linq")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1020:AvoidNamespacesWithFewTypes", Scope = "namespace", Target = "Hexa.Core.Xml")]
@@ -17,4 +16,4 @@
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1020:AvoidNamespacesWithFewTypes", Scope = "namespace", Target = "Hexa.Core.Security")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1020:AvoidNamespacesWithFewTypes", Scope = "namespace", Target = "Hexa.Core.Pooling")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1020:AvoidNamespacesWithFewTypes", Scope = "namespace", Target = "Hexa.Core.Logging")]
-[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1020:AvoidNamespacesWithFewTypes", Scope = "namespace", Target = "GNU.Gettext")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1020:AvoidNamespacesWithFewTypes", Scope = "namespace", Target = "GNU.Gettext")]
View
2 Hexa.Core/Globalization/Gettext.cs
@@ -636,4 +636,4 @@ IDictionaryEnumerator IResourceReader.GetEnumerator()
#endregion Other
}
-}
+}
View
2 Hexa.Core/Globalization/GettextHelper.cs
@@ -99,4 +99,4 @@ public static string t(string key, Assembly callingAssembly)
#endregion Methods
}
-}
+}
View
2 Hexa.Core/IoC/ApplicationContext.cs
@@ -158,4 +158,4 @@ public static void Stop()
#endregion Methods
}
-}
+}
View
2 Hexa.Core/IoC/DictionaryServicesContainer.cs
@@ -253,4 +253,4 @@ private object ConstructObject(Type type)
#endregion Methods
}
-}
+}
View
2 Hexa.Core/IoC/IoCContainer.cs
@@ -114,4 +114,4 @@ public void RegisterType(Type @interface, Type @type)
#endregion Methods
}
-}
+}
View
61 Hexa.Core/IoC/ServiceLocator.cs
@@ -1,4 +1,4 @@
-#region License
+#region Header
// ===================================================================================
// Copyright 2010 HexaSystems Corporation
@@ -15,25 +15,51 @@
// See the License for the specific language governing permissions and
// ===================================================================================
-#endregion
-
-using SL = Microsoft.Practices.ServiceLocation;
+#endregion Header
namespace Hexa.Core
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
+
using SL;
+ using SL = Microsoft.Practices.ServiceLocation;
+
/// <summary>
/// This is a helper for accessing dependencies via the Common Service Locator (CSL). But while
/// the CSL will throw object reference errors if used before initialization, this will inform
/// you of what the problem is. Perhaps it would be more aptly named "InformativeServiceLocator."
/// </summary>
public static class ServiceLocator
{
+ #region Methods
+
+ [SuppressMessage("Microsoft.Naming",
+ "CA2204:Literals should be spelled correctly", MessageId = "ServiceLocator")]
+ public static TDependency[] GetAllInstances<TDependency>()
+ {
+ try
+ {
+ IEnumerable<object> services =
+ Microsoft.Practices.ServiceLocation.ServiceLocator.Current.GetAllInstances(typeof(TDependency));
+
+ if (services != null)
+ {
+ return services.Cast<TDependency>().ToArray();
+ }
+ }
+ catch (NullReferenceException)
+ {
+ throw new InternalException("ServiceLocator has not been initialized; " +
+ "I was trying to retrieve " + typeof(TDependency));
+ }
+
+ return default(TDependency[]);
+ }
+
/// <summary>
/// Gets the service.
/// </summary>
@@ -48,7 +74,7 @@ public static TDependency GetInstance<TDependency>()
/// </summary>
/// <returns></returns>
[SuppressMessage("Microsoft.Naming",
- "CA2204:Literals should be spelled correctly", MessageId = "ServiceLocator")]
+ "CA2204:Literals should be spelled correctly", MessageId = "ServiceLocator")]
public static object GetInstance(Type dependencyType)
{
object service;
@@ -79,7 +105,9 @@ public static TDependency TryGetInstance<TDependency>()
Microsoft.Practices.ServiceLocation.ServiceLocator.Current.GetAllInstances(typeof(TDependency));
if (services != null)
+ {
return (TDependency)services.FirstOrDefault();
+ }
}
catch (NullReferenceException)
{
@@ -90,25 +118,6 @@ public static TDependency TryGetInstance<TDependency>()
return default(TDependency);
}
- [SuppressMessage("Microsoft.Naming",
- "CA2204:Literals should be spelled correctly", MessageId = "ServiceLocator")]
- public static TDependency[] GetAllInstances<TDependency>()
- {
- try
- {
- IEnumerable<object> services =
- Microsoft.Practices.ServiceLocation.ServiceLocator.Current.GetAllInstances(typeof(TDependency));
-
- if (services != null)
- return services.Cast<TDependency>().ToArray();
- }
- catch (NullReferenceException)
- {
- throw new InternalException("ServiceLocator has not been initialized; " +
- "I was trying to retrieve " + typeof(TDependency));
- }
-
- return default(TDependency[]);
- }
+ #endregion Methods
}
-}
+}
View
2 Hexa.Core/Linq/PagingExtensions.cs
@@ -43,4 +43,4 @@ public static IEnumerable<T> Page<T>(this IEnumerable<T> query, int pageNumber,
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Logging/ILogger.cs
@@ -70,4 +70,4 @@ public interface ILogger
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Logging/ILoggerFactory.cs
@@ -31,4 +31,4 @@ public interface ILoggerFactory
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Logging/Log4NetLogger.cs
@@ -153,4 +153,4 @@ public void WarnFormat(IFormatProvider provider, string format, params object[]
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Logging/Log4NetLoggerFactory.cs
@@ -198,4 +198,4 @@ public override string ToString()
#endregion Nested Types
}
-}
+}
View
2 Hexa.Core/Pool/Pool.cs
@@ -184,4 +184,4 @@ private void _PreloadItems(int size)
#endregion Methods
}
-}
+}
View
2 Hexa.Core/Printer/PrinterHelper.cs
@@ -159,4 +159,4 @@ public static string ReadPrinterStatus(string name)