Permalink
Browse files

init commit

  • Loading branch information...
Paweł Grądecki
Paweł Grądecki committed Nov 26, 2017
1 parent 32bc314 commit b2515d99709281151ababd0bb24099c4e6cf2117
Showing with 67,273 additions and 0 deletions.
  1. +31 −0 Validation.Plugin.sln
  2. +36 −0 Validation.Plugin/Odx.Xrm.Core/ActivityHandlerBase.cs
  3. +33 −0 Validation.Plugin/Odx.Xrm.Core/BaseCustomActivity.cs
  4. +169 −0 Validation.Plugin/Odx.Xrm.Core/BasePlugin.cs
  5. +187 −0 Validation.Plugin/Odx.Xrm.Core/DataAccess/BaseRepository.cs
  6. +71 −0 Validation.Plugin/Odx.Xrm.Core/DataAccess/EntityCollectionPaginator.cs
  7. +58 −0 Validation.Plugin/Odx.Xrm.Core/DataAccess/IBaseRepository.cs
  8. +10 −0 Validation.Plugin/Odx.Xrm.Core/DataAccess/IPaginatorSettings.cs
  9. +22 −0 Validation.Plugin/Odx.Xrm.Core/DataAccess/IRepositoryFactory.cs
  10. +11 −0 Validation.Plugin/Odx.Xrm.Core/DataAccess/PaginatorSettings.cs
  11. +77 −0 Validation.Plugin/Odx.Xrm.Core/DataAccess/RepositoryFactory.cs
  12. +19 −0 Validation.Plugin/Odx.Xrm.Core/DataAccess/RequestAddedEventArgs.cs
  13. +77 −0 Validation.Plugin/Odx.Xrm.Core/DataAccess/TransactionExecutor.cs
  14. +53 −0 Validation.Plugin/Odx.Xrm.Core/Extensions.cs
  15. +18 −0 Validation.Plugin/Odx.Xrm.Core/HandlerBase.cs
  16. +13 −0 Validation.Plugin/Odx.Xrm.Core/IActivityHandler.cs
  17. +11 −0 Validation.Plugin/Odx.Xrm.Core/IEntityExtension.cs
  18. +9 −0 Validation.Plugin/Odx.Xrm.Core/IEntityWithOwner.cs
  19. +9 −0 Validation.Plugin/Odx.Xrm.Core/IHandler.cs
  20. +34 −0 Validation.Plugin/Odx.Xrm.Core/ILocalPluginExecutionContext.cs
  21. +10 −0 Validation.Plugin/Odx.Xrm.Core/ITraceableObject.cs
  22. +195 −0 Validation.Plugin/Odx.Xrm.Core/LocalPluginExecutionContext.cs
  23. +44 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Bson/BsonBinaryType.cs
  24. +329 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Bson/BsonBinaryWriter.cs
  25. +58 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Bson/BsonObjectId.cs
  26. +829 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Bson/BsonReader.cs
  27. +181 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Bson/BsonToken.cs
  28. +51 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Bson/BsonType.cs
  29. +538 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Bson/BsonWriter.cs
  30. +43 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/ConstructorHandling.cs
  31. +208 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Converters/BinaryConverter.cs
  32. +92 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Converters/BsonObjectIdConverter.cs
  33. +104 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Converters/CustomCreationConverter.cs
  34. +125 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Converters/DataSetConverter.cs
  35. +255 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Converters/DataTableConverter.cs
  36. +58 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Converters/DateTimeConverterBase.cs
  37. +280 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Converters/DiscriminatedUnionConverter.cs
  38. +157 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Converters/EntityKeyMemberConverter.cs
  39. +168 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Converters/ExpandoObjectConverter.cs
  40. +197 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Converters/IsoDateTimeConverter.cs
  41. +126 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Converters/JavaScriptDateTimeConverter.cs
  42. +153 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Converters/KeyValuePairConverter.cs
  43. +244 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Converters/RegexConverter.cs
  44. +183 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Converters/StringEnumConverter.cs
  45. +106 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Converters/VersionConverter.cs
  46. +2,332 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Converters/XmlNodeConverter.cs
  47. +43 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/DateFormatHandling.cs
  48. +49 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/DateParseHandling.cs
  49. +56 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/DateTimeZoneHandling.cs
  50. +67 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/DefaultValueHandling.cs
  51. BIN Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Dynamic.snk
  52. +52 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/FloatFormatHandling.cs
  53. +43 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/FloatParseHandling.cs
  54. +24 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/FormatterAssemblyStyle.cs
  55. +43 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Formatting.cs
  56. +22 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/IArrayPool.cs
  57. +53 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/IJsonLineInfo.cs
  58. +73 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonArrayAttribute.cs
  59. +37 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonConstructorAttribute.cs
  60. +180 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonContainerAttribute.cs
  61. +1,019 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonConvert.cs
  62. +156 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonConverter.cs
  63. +80 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonConverterAttribute.cs
  64. +39 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonConverterCollection.cs
  65. +52 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonDictionaryAttribute.cs
  66. +92 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonException.cs
  67. +37 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonExtensionDataAttribute.cs
  68. +39 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonIgnoreAttribute.cs
  69. +89 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonObjectAttribute.cs
  70. +167 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonPosition.cs
  71. +223 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonPropertyAttribute.cs
  72. +246 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonReader.Async.cs
  73. +1,270 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonReader.cs
  74. +148 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonReaderException.cs
  75. +39 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonRequiredAttribute.cs
  76. +100 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonSerializationException.cs
  77. +1,192 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonSerializer.cs
  78. +434 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonSerializerSettings.cs
  79. +1,768 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonTextReader.Async.cs
  80. +2,583 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonTextReader.cs
  81. +1,359 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonTextWriter.Async.cs
  82. +856 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonTextWriter.cs
  83. +127 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonToken.cs
  84. +1,070 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonValidatingReader.cs
  85. +1,709 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonWriter.Async.cs
  86. +1,744 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonWriter.cs
  87. +114 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/JsonWriterException.cs
  88. +59 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/CommentHandling.cs
  89. +334 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/Extensions.cs
  90. +46 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/IJEnumerable.cs
  91. +103 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JArray.Async.cs
  92. +408 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JArray.cs
  93. +106 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JConstructor.Async.cs
  94. +253 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JConstructor.cs
  95. +175 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JContainer.Async.cs
  96. +1,226 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JContainer.cs
  97. +140 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JEnumerable.cs
  98. +108 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JObject.Async.cs
  99. +835 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JObject.cs
  100. +118 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JProperty.Async.cs
  101. +395 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JProperty.cs
  102. +164 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JPropertyDescriptor.cs
  103. +284 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JPropertyKeyedCollection.cs
  104. +57 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JRaw.Async.cs
  105. +75 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JRaw.cs
  106. +178 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JToken.Async.cs
  107. +2,717 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JToken.cs
  108. +64 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JTokenEqualityComparer.cs
  109. +330 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JTokenReader.cs
  110. +123 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JTokenType.cs
  111. +53 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JTokenWriter.Async.cs
  112. +537 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JTokenWriter.cs
  113. +138 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JValue.Async.cs
  114. +1,190 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JValue.cs
  115. +58 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JsonLoadSettings.cs
  116. +49 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JsonMergeSettings.cs
  117. +44 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JsonPath/ArrayIndexFilter.cs
  118. +25 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JsonPath/ArrayMultipleIndexFilter.cs
  119. +88 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JsonPath/ArraySliceFilter.cs
  120. +49 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JsonPath/FieldFilter.cs
  121. +52 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JsonPath/FieldMultipleFilter.cs
  122. +825 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JsonPath/JPath.cs
  123. +83 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JsonPath/PathFilter.cs
  124. +242 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JsonPath/QueryExpression.cs
  125. +24 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JsonPath/QueryFilter.cs
  126. +34 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JsonPath/QueryScanFilter.cs
  127. +18 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JsonPath/RootFilter.cs
  128. +50 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JsonPath/ScanFilter.cs
  129. +41 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/JsonPath/ScanMultipleFilter.cs
  130. +20 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/MergeArrayHandling.cs
  131. +21 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Linq/MergeNullValueHandling.cs
  132. +58 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/MemberSerialization.cs
  133. +52 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/MetadataPropertyHandling.cs
  134. +47 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/MissingMemberHandling.cs
  135. +86 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Newtonsoft.Json.csproj
  136. +15 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Newtonsoft.Json.ruleset
  137. +47 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/NullValueHandling.cs
  138. +48 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/ObjectCreationHandling.cs
  139. +62 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/PreserveReferencesHandling.cs
  140. +52 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/ReferenceLoopHandling.cs
  141. +53 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Required.cs
  142. +137 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Schema/Extensions.cs
  143. +356 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Schema/JsonSchema.cs
  144. +495 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Schema/JsonSchemaBuilder.cs
  145. +80 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Schema/JsonSchemaConstants.cs
  146. +113 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Schema/JsonSchemaException.cs
  147. +504 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Schema/JsonSchemaGenerator.cs
  148. +125 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Schema/JsonSchemaModel.cs
  149. +213 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Schema/JsonSchemaModelBuilder.cs
  150. +85 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Schema/JsonSchemaNode.cs
  151. +39 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Schema/JsonSchemaNodeCollection.cs
  152. +79 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Schema/JsonSchemaResolver.cs
  153. +87 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Schema/JsonSchemaType.cs
  154. +258 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Schema/JsonSchemaWriter.cs
  155. +56 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Schema/UndefinedSchemaIdHandling.cs
  156. +77 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Schema/ValidationEventArgs.cs
  157. +40 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Schema/ValidationEventHandler.cs
  158. +41 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/CachedAttributeGetter.cs
  159. +62 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/CamelCaseNamingStrategy.cs
  160. +127 −0 ...ation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/CamelCasePropertyNamesContractResolver.cs
  161. +1,681 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/DefaultContractResolver.cs
  162. +18 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/DefaultNamingStrategy.cs
  163. +88 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/DefaultReferenceResolver.cs
  164. +215 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/DefaultSerializationBinder.cs
  165. +79 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/DiagnosticsTraceWriter.cs
  166. +114 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/DynamicValueProvider.cs
  167. +75 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/ErrorContext.cs
  168. +58 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/ErrorEventArgs.cs
  169. +121 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/ExpressionValueProvider.cs
  170. +117 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/FormatterConverter.cs
  171. +51 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/IAttributeProvider.cs
  172. +46 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/IContractResolver.cs
  173. +67 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/IReferenceResolver.cs
  174. +53 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/ISerializationBinder.cs
  175. +28 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/ITraceWriter.cs
  176. +47 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/IValueProvider.cs
  177. +320 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/JsonArrayContract.cs
  178. +120 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/JsonContainerContract.cs
  179. +317 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/JsonContract.cs
  180. +232 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/JsonDictionaryContract.cs
  181. +119 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/JsonDynamicContract.cs
  182. +161 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/JsonFormatterConverter.cs
  183. +55 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/JsonISerializableContract.cs
  184. +45 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/JsonLinqContract.cs
  185. +187 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/JsonObjectContract.cs
  186. +76 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/JsonPrimitiveContract.cs
  187. +313 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/JsonProperty.cs
  188. +180 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/JsonPropertyCollection.cs
  189. +149 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/JsonSerializerInternalBase.cs
  190. +2,570 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/JsonSerializerInternalReader.cs
  191. +1,234 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/JsonSerializerInternalWriter.cs
  192. +292 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/JsonSerializerProxy.cs
  193. +45 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/JsonStringContract.cs
  194. +523 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/JsonTypeReflector.cs
  195. +100 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/MemoryTraceWriter.cs
  196. +80 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/NamingStrategy.cs
  197. +33 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/ObjectConstructor.cs
  198. +37 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/OnErrorAttribute.cs
  199. +71 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/ReflectionAttributeProvider.cs
  200. +84 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/ReflectionValueProvider.cs
  201. +59 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/SerializationBinderAdapter.cs
  202. +62 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/SnakeCaseNamingStrategy.cs
  203. +157 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/TraceJsonReader.cs
  204. +574 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Serialization/TraceJsonWriter.cs
  205. +36 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/SerializationBinder.cs
  206. +48 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/StringEscapeHandling.cs
  207. +39 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/TraceLevel.cs
  208. +43 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/TypeNameAssemblyFormatHandling.cs
  209. +70 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/TypeNameHandling.cs
  210. +98 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/AsyncUtils.cs
  211. +217 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/Base64Encoder.cs
  212. +97 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/BidirectionalDictionary.cs
  213. +373 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/CollectionUtils.cs
  214. +327 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/CollectionWrapper.cs
  215. +1,656 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/ConvertUtils.cs
  216. +277 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/DateTimeParser.cs
  217. +839 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/DateTimeUtils.cs
  218. +710 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/DictionaryWrapper.cs
  219. +113 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/DynamicProxy.cs
  220. +391 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/DynamicProxyMetaObject.cs
  221. +400 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/DynamicReflectionDelegateFactory.cs
  222. +210 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/DynamicUtils.cs
  223. +273 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/EnumUtils.cs
  224. +49 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/EnumValue.cs
  225. +387 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/ExpressionReflectionDelegateFactory.cs
  226. +195 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/FSharpUtils.cs
  227. +95 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/ILGeneratorExtensions.cs
  228. +181 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/ImmutableCollectionsUtils.cs
  229. +566 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/JavaScriptUtils.cs
  230. +77 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/JsonTokenUtils.cs
  231. +119 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/LateBoundReflectionDelegateFactory.cs
  232. +3,051 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/LinqBridge.cs
  233. +187 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/MathUtils.cs
  234. +346 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/MethodBinder.cs
  235. +29 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/MethodCall.cs
  236. +158 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/MiscellaneousUtils.cs
  237. +173 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/PropertyNameTable.cs
  238. +81 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/ReflectionDelegateFactory.cs
  239. +167 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/ReflectionObject.cs
  240. +1,162 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/ReflectionUtils.cs
  241. +122 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/StringBuffer.cs
  242. +123 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/StringReference.cs
  243. +327 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/StringUtils.cs
  244. +111 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/ThreadSafeStore.cs
  245. +620 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/TypeExtensions.cs
  246. +40 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/Utilities/ValidationUtils.cs
  247. +72 −0 Validation.Plugin/Odx.Xrm.Core/Newtonsoft.Json/WriteState.cs
  248. +259 −0 Validation.Plugin/Odx.Xrm.Core/Odx.Xrm.Core.projitems
  249. +13 −0 Validation.Plugin/Odx.Xrm.Core/Odx.Xrm.Core.shproj
  250. +29 −0 Validation.Plugin/Odx.Xrm.Core/TraceableObject.cs
  251. +25 −0 Validation.Plugin/Odx.Xrm.Core/Utilities/InterfaceMocker.cs
  252. +34 −0 Validation.Plugin/Odx.Xrm.Core/Utilities/ProxyTypesCache.cs
  253. +73 −0 Validation.Plugin/Validation.Plugin.CoreLib/BusinessLogic/Handlers/Common/ValidationHandler.cs
  254. +18 −0 Validation.Plugin/Validation.Plugin.CoreLib/BusinessLogic/Plugins/Common/ValidationPlugin.cs
  255. +38 −0 Validation.Plugin/Validation.Plugin.CoreLib/Model/CrmEntity.cs
  256. +36 −0 Validation.Plugin/Validation.Plugin.CoreLib/Properties/AssemblyInfo.cs
  257. +93 −0 Validation.Plugin/Validation.Plugin.CoreLib/Validation.Plugin.CoreLib.csproj
  258. BIN Validation.Plugin/Validation.Plugin.CoreLib/key.snk
  259. +6 −0 Validation.Plugin/Validation.Plugin.CoreLib/packages.config
@@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27004.2009
MinimumVisualStudioVersion = 10.0.40219.1
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Odx.Xrm.Core", "Validation.Plugin\Odx.Xrm.Core\Odx.Xrm.Core.shproj", "{39F24847-66D9-474D-AB0A-9035274E8DC6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Validation.Plugin.CoreLib", "Validation.Plugin\Validation.Plugin.CoreLib\Validation.Plugin.CoreLib.csproj", "{B22FC16A-6C94-4C73-8E9A-13DB1A70EC6D}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
Validation.Plugin\Odx.Xrm.Core\Odx.Xrm.Core.projitems*{39f24847-66d9-474d-ab0a-9035274e8dc6}*SharedItemsImports = 13
Validation.Plugin\Odx.Xrm.Core\Odx.Xrm.Core.projitems*{b22fc16a-6c94-4c73-8e9a-13db1a70ec6d}*SharedItemsImports = 4
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B22FC16A-6C94-4C73-8E9A-13DB1A70EC6D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B22FC16A-6C94-4C73-8E9A-13DB1A70EC6D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B22FC16A-6C94-4C73-8E9A-13DB1A70EC6D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B22FC16A-6C94-4C73-8E9A-13DB1A70EC6D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {EFD477E1-E57D-485C-84B4-E160BEF7E285}
EndGlobalSection
EndGlobal
@@ -0,0 +1,36 @@
using System.Activities;
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Sdk.Workflow;
using Odx.Xrm.Core.DataAccess;
namespace Odx.Xrm.Core
{
public class ActivityHandlerBase<T> : TraceableObject
where T : CodeActivity
{
private CodeActivityContext activityContext;
public T ActivityData { get; private set; }
protected IWorkflowContext WorkflowContext { get; private set; }
private void InitializeInternal(CodeActivityContext context, T activity)
{
this.activityContext = context;
this.ActivityData = activity;
this.tracingService = context.GetExtension<ITracingService>();
}
public void Initialize(CodeActivityContext context, CodeActivity activity)
{
this.InitializeInternal(context, (T)activity);
}
protected V GetContextProperty<V>(InArgument<V> inValue)
{
return inValue.Get<V>(this.activityContext);
}
protected void SetContextProperty<V>(OutArgument<V> outValue, V value)
{
outValue.Set(this.activityContext, value);
}
}
}
@@ -0,0 +1,33 @@
using System;
using System.Activities;
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Sdk.Workflow;
using Odx.Xrm.Core.DataAccess;
namespace Odx.Xrm.Core
{
public abstract class BaseCustomActivity : CodeActivity
{
protected override void Execute(CodeActivityContext context)
{
var handler = this.GetActivityHandler();
handler.Initialize(context, this);
var repositoryFactory = this.GetRepositoryFactory(context);
var workflowContext = this.GetWorkflowContext(context);
handler.Execute(workflowContext, repositoryFactory);
}
private IWorkflowContext GetWorkflowContext(CodeActivityContext context)
{
return context.GetExtension<IWorkflowContext>();
}
private IRepositoryFactory GetRepositoryFactory(CodeActivityContext context)
{
var factory = context.GetExtension<IOrganizationServiceFactory>();
return new RepositoryFactory(factory);
}
protected abstract IActivityHandler GetActivityHandler();
}
}
@@ -0,0 +1,169 @@
using System;
using System.Collections.Generic;
using Microsoft.Xrm.Sdk;
using Odx.Xrm.Core.DataAccess;
namespace Odx.Xrm.Core
{
public abstract class BasePlugin : IPlugin
{
private string unsecureConfig;
private string secureConfig;
private HashSet<string> availableMessages;
private bool disableRegisterCheck;
private enum PipelineStage
{
PreValidation = 10,
PreOperation = 20,
PostOperation = 40
}
protected string UnsecureConfig
{
get
{
return this.unsecureConfig;
}
}
protected string SecureConfig
{
get
{
return this.secureConfig;
}
}
/// <summary>
/// Register all messages that this plugin is registered on using fluent RegisterMessage method Example:
/// RegisterMessage<CreateRequest>().RegisterMessage<UpdateRequest>()
/// </summary>
protected abstract void RegisterAvailableMessages();
private BasePlugin RegisterMessage<TMessage>(PipelineStage stage)
where TMessage : OrganizationRequest, new()
{
var temp = new TMessage();
return this.RegisterMessage(stage, temp.RequestName);
}
public void DisableRegisterCheck()
{
this.disableRegisterCheck = true;
}
private BasePlugin RegisterMessage(PipelineStage stage, string messageName)
{
this.availableMessages.Add(stage + messageName);
return this;
}
public BasePlugin RegisterMessagePost(string messageName)
{
return this.RegisterMessage(PipelineStage.PostOperation, messageName);
}
public BasePlugin RegisterMessagePost<TMessage>()
where TMessage : OrganizationRequest, new()
{
return this.RegisterMessage<TMessage>(PipelineStage.PostOperation);
}
public BasePlugin RegisterMessagePre(string messageName)
{
return this.RegisterMessage(PipelineStage.PreOperation, messageName);
}
public BasePlugin RegisterMessagePre<TMessage>()
where TMessage : OrganizationRequest, new()
{
return this.RegisterMessage<TMessage>(PipelineStage.PreOperation);
}
public BasePlugin RegisterMessagePreValidation<TMessage>()
where TMessage : OrganizationRequest, new()
{
return this.RegisterMessage<TMessage>(PipelineStage.PreValidation);
}
public BasePlugin RegisterMessagePreValidation(string messageName)
{
return this.RegisterMessage(PipelineStage.PreValidation, messageName);
}
public BasePlugin(string unsecureConfig, string secureConfig)
{
this.availableMessages = new HashSet<string>();
this.unsecureConfig = unsecureConfig;
this.secureConfig = secureConfig;
}
public virtual void Execute(IServiceProvider serviceProvider)
{
this.RegisterAvailableMessages();
var context = this.GetPluginExecutionContext(serviceProvider);
if (!this.disableRegisterCheck)
{
if (!availableMessages.Contains((PipelineStage)context.Stage + context.MessageName))
{
throw new InvalidPluginExecutionException($"Plugin registered on bad message. Contact your system administrator");
}
}
}
protected IPluginExecutionContext GetPluginExecutionContext(IServiceProvider serviceProvider)
{
return (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));
}
}
public abstract class BasePlugin<T> : BasePlugin, IPlugin
where T : HandlerBase, IHandler, new()
{
public BasePlugin(string unsecureConfig, string secureConfig) : base(unsecureConfig, secureConfig) { }
public override void Execute(IServiceProvider serviceProvider)
{
base.Execute(serviceProvider);
var localContext = this.GetLocalPluginContext(serviceProvider);
var repositoryFactory = this.GetRepositoryFactory(serviceProvider);
var tracingService = this.GetTracingService(serviceProvider);
var handler = new T();
handler.InitializeTracing(tracingService);
handler.InitializeConfiguration(this.UnsecureConfig, this.SecureConfig);
try
{
handler.Execute(localContext, repositoryFactory);
}
catch (Exception ex)
{
handler.Trace(ex);
handler.Trace($"Context: {localContext.Context.InputParameters.ToJSON()}");
throw;
}
}
private IRepositoryFactory GetRepositoryFactory(IServiceProvider serviceProvider)
{
var factory = serviceProvider.GetService(typeof(IOrganizationServiceFactory)) as IOrganizationServiceFactory;
return new RepositoryFactory(factory);
}
private ILocalPluginExecutionContext GetLocalPluginContext(IServiceProvider serviceProvider)
{
var context = this.GetPluginExecutionContext(serviceProvider);
return new LocalPluginExecutionContext(context);
}
private ITracingService GetTracingService(IServiceProvider serviceProvider)
{
return (ITracingService)serviceProvider.GetService(typeof(ITracingService));
}
}
}
Oops, something went wrong.

0 comments on commit b2515d9

Please sign in to comment.