diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 00000000..261eeb9e --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/MongODM.sln b/MongODM.sln index 1bec69e7..e3a97b2e 100644 --- a/MongODM.sln +++ b/MongODM.sln @@ -22,6 +22,8 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{03C64D98-FF9F-4760-AE82-203953FF4940}" ProjectSection(SolutionItems) = preProject .gitignore = .gitignore + LICENSE.txt = LICENSE.txt + MongODM.sln.licenseheader = MongODM.sln.licenseheader EndProjectSection EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{D4BB5972-5F7B-43ED-81C1-69ECF0E62D1E}" diff --git a/MongODM.sln.licenseheader b/MongODM.sln.licenseheader new file mode 100644 index 00000000..b79a00d5 --- /dev/null +++ b/MongODM.sln.licenseheader @@ -0,0 +1,47 @@ +extensions: designer.cs generated.cs +extensions: .cs .cpp .h +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +extensions: .cshtml +@* Copyright 2020-present Etherna Sagl + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *@ + +extensions: .xml .config .xsd + diff --git a/src/ExecutionContext/AsyncLocal/AsyncLocalContext.cs b/src/ExecutionContext/AsyncLocal/AsyncLocalContext.cs index 9f58fbb9..d54e3144 100644 --- a/src/ExecutionContext/AsyncLocal/AsyncLocalContext.cs +++ b/src/ExecutionContext/AsyncLocal/AsyncLocalContext.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; using System.Collections.Generic; using System.Threading; diff --git a/src/ExecutionContext/AsyncLocal/AsyncLocalContextHandler.cs b/src/ExecutionContext/AsyncLocal/AsyncLocalContextHandler.cs index 79f45266..4f9325e8 100644 --- a/src/ExecutionContext/AsyncLocal/AsyncLocalContextHandler.cs +++ b/src/ExecutionContext/AsyncLocal/AsyncLocalContextHandler.cs @@ -1,4 +1,18 @@ -namespace Etherna.ExecContext.AsyncLocal +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +namespace Etherna.ExecContext.AsyncLocal { /// /// The handler for an initialization. diff --git a/src/ExecutionContext/AsyncLocal/IAsyncLocalContext.cs b/src/ExecutionContext/AsyncLocal/IAsyncLocalContext.cs index f7b12877..1695d3ec 100644 --- a/src/ExecutionContext/AsyncLocal/IAsyncLocalContext.cs +++ b/src/ExecutionContext/AsyncLocal/IAsyncLocalContext.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; namespace Etherna.ExecContext.AsyncLocal { diff --git a/src/ExecutionContext/AsyncLocal/IAsyncLocalContextHandler.cs b/src/ExecutionContext/AsyncLocal/IAsyncLocalContextHandler.cs index 8e9fb773..51f1885c 100644 --- a/src/ExecutionContext/AsyncLocal/IAsyncLocalContextHandler.cs +++ b/src/ExecutionContext/AsyncLocal/IAsyncLocalContextHandler.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; namespace Etherna.ExecContext.AsyncLocal { diff --git a/src/ExecutionContext/AsyncLocal/IHandledAsyncLocalContext.cs b/src/ExecutionContext/AsyncLocal/IHandledAsyncLocalContext.cs index f3564b19..6236049c 100644 --- a/src/ExecutionContext/AsyncLocal/IHandledAsyncLocalContext.cs +++ b/src/ExecutionContext/AsyncLocal/IHandledAsyncLocalContext.cs @@ -1,4 +1,18 @@ -namespace Etherna.ExecContext.AsyncLocal +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +namespace Etherna.ExecContext.AsyncLocal { /// /// Interface used by for comunicate with its diff --git a/src/ExecutionContext/Exceptions/ExecutionContextNotFoundException.cs b/src/ExecutionContext/Exceptions/ExecutionContextNotFoundException.cs index 60caf978..41998bfd 100644 --- a/src/ExecutionContext/Exceptions/ExecutionContextNotFoundException.cs +++ b/src/ExecutionContext/Exceptions/ExecutionContextNotFoundException.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; namespace Etherna.ExecContext.Exceptions { diff --git a/src/ExecutionContext/ExecutionContext.csproj b/src/ExecutionContext/ExecutionContext.csproj index ae5c181f..98695310 100644 --- a/src/ExecutionContext/ExecutionContext.csproj +++ b/src/ExecutionContext/ExecutionContext.csproj @@ -9,6 +9,7 @@ 8.0 enable https://github.com/Etherna/mongodm + LICENSE.txt @@ -22,4 +23,11 @@ + + + True + + + + diff --git a/src/ExecutionContext/ExecutionContextSelector.cs b/src/ExecutionContext/ExecutionContextSelector.cs index db04f1b7..18d4c240 100644 --- a/src/ExecutionContext/ExecutionContextSelector.cs +++ b/src/ExecutionContext/ExecutionContextSelector.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; using System.Collections.Generic; namespace Etherna.ExecContext diff --git a/src/ExecutionContext/IExecutionContext.cs b/src/ExecutionContext/IExecutionContext.cs index 10a6d294..90f1b92c 100644 --- a/src/ExecutionContext/IExecutionContext.cs +++ b/src/ExecutionContext/IExecutionContext.cs @@ -1,4 +1,18 @@ -using System.Collections.Generic; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System.Collections.Generic; namespace Etherna.ExecContext { diff --git a/src/ExecutionContext/Properties/AssemblyInfo.cs b/src/ExecutionContext/Properties/AssemblyInfo.cs index fbf5dc36..17f09a54 100644 --- a/src/ExecutionContext/Properties/AssemblyInfo.cs +++ b/src/ExecutionContext/Properties/AssemblyInfo.cs @@ -1,4 +1,18 @@ -using System.Runtime.CompilerServices; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")] [assembly: InternalsVisibleTo("ExecutionContext.Tests")] diff --git a/src/ExecutionContext/Properties/GlobalSuppressions.cs b/src/ExecutionContext/Properties/GlobalSuppressions.cs index 8035245b..f8120b38 100644 --- a/src/ExecutionContext/Properties/GlobalSuppressions.cs +++ b/src/ExecutionContext/Properties/GlobalSuppressions.cs @@ -1,4 +1,18 @@ -// This file is used by Code Analysis to maintain SuppressMessage +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// 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 // a specific target and scoped to a namespace, type, member, etc. diff --git a/src/MongODM.AspNetCore/HttpContextExecutionContext.cs b/src/MongODM.AspNetCore/HttpContextExecutionContext.cs index 2b7a8262..6d234d9e 100644 --- a/src/MongODM.AspNetCore/HttpContextExecutionContext.cs +++ b/src/MongODM.AspNetCore/HttpContextExecutionContext.cs @@ -1,4 +1,18 @@ -using Etherna.ExecContext; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.ExecContext; using Microsoft.AspNetCore.Http; using System.Collections.Generic; diff --git a/src/MongODM.AspNetCore/MongODM.AspNetCore.csproj b/src/MongODM.AspNetCore/MongODM.AspNetCore.csproj index daf416c1..5fccab9a 100644 --- a/src/MongODM.AspNetCore/MongODM.AspNetCore.csproj +++ b/src/MongODM.AspNetCore/MongODM.AspNetCore.csproj @@ -9,6 +9,7 @@ 8.0 enable https://github.com/Etherna/mongodm + LICENSE.txt @@ -36,4 +37,11 @@ + + + True + + + + diff --git a/src/MongODM.AspNetCore/MongODMConfiguration.cs b/src/MongODM.AspNetCore/MongODMConfiguration.cs index 7b73a847..957782f1 100644 --- a/src/MongODM.AspNetCore/MongODMConfiguration.cs +++ b/src/MongODM.AspNetCore/MongODMConfiguration.cs @@ -1,4 +1,18 @@ -using Microsoft.Extensions.DependencyInjection; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Microsoft.Extensions.DependencyInjection; namespace Etherna.MongODM.AspNetCore { diff --git a/src/MongODM.AspNetCore/ServiceCollectionExtensions.cs b/src/MongODM.AspNetCore/ServiceCollectionExtensions.cs index 910067e1..2ae9f8e4 100644 --- a/src/MongODM.AspNetCore/ServiceCollectionExtensions.cs +++ b/src/MongODM.AspNetCore/ServiceCollectionExtensions.cs @@ -1,4 +1,18 @@ -using Etherna.ExecContext; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.ExecContext; using Etherna.ExecContext.AsyncLocal; using Etherna.MongODM; using Etherna.MongODM.AspNetCore; diff --git a/src/MongODM.Core/Attributes/PropertyAltererAttribute.cs b/src/MongODM.Core/Attributes/PropertyAltererAttribute.cs index 6059ab62..65dca739 100644 --- a/src/MongODM.Core/Attributes/PropertyAltererAttribute.cs +++ b/src/MongODM.Core/Attributes/PropertyAltererAttribute.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; namespace Etherna.MongODM.Attributes { diff --git a/src/MongODM.Core/DbContext.cs b/src/MongODM.Core/DbContext.cs index 770c1bb9..a3ff89c1 100644 --- a/src/MongODM.Core/DbContext.cs +++ b/src/MongODM.Core/DbContext.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Migration; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Migration; using Etherna.MongODM.Models; using Etherna.MongODM.ProxyModels; using Etherna.MongODM.Repositories; diff --git a/src/MongODM.Core/DbContextOptions.cs b/src/MongODM.Core/DbContextOptions.cs index eaa49bf8..f1d4375a 100644 --- a/src/MongODM.Core/DbContextOptions.cs +++ b/src/MongODM.Core/DbContextOptions.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Serialization; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Serialization; using System.Linq; namespace Etherna.MongODM diff --git a/src/MongODM.Core/Exceptions/EntityNotFoundException.cs b/src/MongODM.Core/Exceptions/EntityNotFoundException.cs index fbcd8754..c2b7fe22 100644 --- a/src/MongODM.Core/Exceptions/EntityNotFoundException.cs +++ b/src/MongODM.Core/Exceptions/EntityNotFoundException.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; namespace Etherna.MongODM.Exceptions { diff --git a/src/MongODM.Core/Exceptions/InvalidEntityTypeException.cs b/src/MongODM.Core/Exceptions/InvalidEntityTypeException.cs index bf1fb4d6..f57a0dce 100644 --- a/src/MongODM.Core/Exceptions/InvalidEntityTypeException.cs +++ b/src/MongODM.Core/Exceptions/InvalidEntityTypeException.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; namespace Etherna.MongODM.Exceptions { diff --git a/src/MongODM.Core/Extensions/ClassMapExtensions.cs b/src/MongODM.Core/Extensions/ClassMapExtensions.cs index aea66a6e..ab18f7a8 100644 --- a/src/MongODM.Core/Extensions/ClassMapExtensions.cs +++ b/src/MongODM.Core/Extensions/ClassMapExtensions.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using Etherna.MongODM.Serialization.Serializers; using MongoDB.Bson.Serialization; using System; diff --git a/src/MongODM.Core/Extensions/EnumerableExtensions.cs b/src/MongODM.Core/Extensions/EnumerableExtensions.cs index def59d78..9840bf5f 100644 --- a/src/MongODM.Core/Extensions/EnumerableExtensions.cs +++ b/src/MongODM.Core/Extensions/EnumerableExtensions.cs @@ -1,4 +1,18 @@ -using MongoDB.Driver.Linq; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Driver.Linq; using System; using System.Collections.Generic; using System.Linq; diff --git a/src/MongODM.Core/GlobalSuppressions.cs b/src/MongODM.Core/GlobalSuppressions.cs index 174ec059..6f092ce9 100644 --- a/src/MongODM.Core/GlobalSuppressions.cs +++ b/src/MongODM.Core/GlobalSuppressions.cs @@ -1,4 +1,17 @@ - +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // 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 diff --git a/src/MongODM.Core/IDbContext.cs b/src/MongODM.Core/IDbContext.cs index 2ffc85df..f37de024 100644 --- a/src/MongODM.Core/IDbContext.cs +++ b/src/MongODM.Core/IDbContext.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.ProxyModels; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.ProxyModels; using Etherna.MongODM.Repositories; using Etherna.MongODM.Serialization; using Etherna.MongODM.Serialization.Modifiers; diff --git a/src/MongODM.Core/IDbContextInitializable.cs b/src/MongODM.Core/IDbContextInitializable.cs index 89e61e46..db8d0f86 100644 --- a/src/MongODM.Core/IDbContextInitializable.cs +++ b/src/MongODM.Core/IDbContextInitializable.cs @@ -1,4 +1,18 @@ -namespace Etherna.MongODM +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +namespace Etherna.MongODM { public interface IDbContextInitializable { diff --git a/src/MongODM.Core/Migration/MongoCollectionMigration.cs b/src/MongODM.Core/Migration/MongoCollectionMigration.cs index de10a709..9d550826 100644 --- a/src/MongODM.Core/Migration/MongoCollectionMigration.cs +++ b/src/MongODM.Core/Migration/MongoCollectionMigration.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using Etherna.MongODM.Repositories; using MongoDB.Driver; using System; diff --git a/src/MongODM.Core/Migration/MongoDocumentMigration.cs b/src/MongODM.Core/Migration/MongoDocumentMigration.cs index 5ddbb4da..9b3d854a 100644 --- a/src/MongODM.Core/Migration/MongoDocumentMigration.cs +++ b/src/MongODM.Core/Migration/MongoDocumentMigration.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using Etherna.MongODM.Repositories; using Etherna.MongODM.Serialization; using MongoDB.Bson; diff --git a/src/MongODM.Core/Migration/MongoMigrationBase.cs b/src/MongODM.Core/Migration/MongoMigrationBase.cs index 53a67fdc..30d84690 100644 --- a/src/MongODM.Core/Migration/MongoMigrationBase.cs +++ b/src/MongODM.Core/Migration/MongoMigrationBase.cs @@ -1,4 +1,18 @@ -using System.Threading; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System.Threading; using System.Threading.Tasks; namespace Etherna.MongODM.Migration diff --git a/src/MongODM.Core/Models/IEntityModel.cs b/src/MongODM.Core/Models/IEntityModel.cs index ffd76256..355f7e4d 100644 --- a/src/MongODM.Core/Models/IEntityModel.cs +++ b/src/MongODM.Core/Models/IEntityModel.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; namespace Etherna.MongODM.Models { diff --git a/src/MongODM.Core/Models/IFileModel.cs b/src/MongODM.Core/Models/IFileModel.cs index bddcf289..c1445760 100644 --- a/src/MongODM.Core/Models/IFileModel.cs +++ b/src/MongODM.Core/Models/IFileModel.cs @@ -1,4 +1,18 @@ -using System.IO; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System.IO; namespace Etherna.MongODM.Models { diff --git a/src/MongODM.Core/Models/IModel.cs b/src/MongODM.Core/Models/IModel.cs index 5fec005e..222f6f68 100644 --- a/src/MongODM.Core/Models/IModel.cs +++ b/src/MongODM.Core/Models/IModel.cs @@ -1,4 +1,18 @@ -using System.Collections.Generic; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System.Collections.Generic; namespace Etherna.MongODM.Models { diff --git a/src/MongODM.Core/MongODM.Core.csproj b/src/MongODM.Core/MongODM.Core.csproj index 674ffeee..3fc6c30c 100644 --- a/src/MongODM.Core/MongODM.Core.csproj +++ b/src/MongODM.Core/MongODM.Core.csproj @@ -9,6 +9,7 @@ 8.0 enable https://github.com/Etherna/mongodm + LICENSE.txt @@ -26,4 +27,11 @@ + + + True + + + + diff --git a/src/MongODM.Core/ProxyModels/AuditableInterceptor.cs b/src/MongODM.Core/ProxyModels/AuditableInterceptor.cs index eaad5579..c505d01b 100644 --- a/src/MongODM.Core/ProxyModels/AuditableInterceptor.cs +++ b/src/MongODM.Core/ProxyModels/AuditableInterceptor.cs @@ -1,4 +1,18 @@ -using Castle.DynamicProxy; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Castle.DynamicProxy; using Etherna.MongODM.Attributes; using System; using System.Collections.Generic; diff --git a/src/MongODM.Core/ProxyModels/IAuditable.cs b/src/MongODM.Core/ProxyModels/IAuditable.cs index dd06ab5c..91893fe9 100644 --- a/src/MongODM.Core/ProxyModels/IAuditable.cs +++ b/src/MongODM.Core/ProxyModels/IAuditable.cs @@ -1,4 +1,18 @@ -using System.Collections.Generic; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System.Collections.Generic; using System.Reflection; namespace Etherna.MongODM.ProxyModels diff --git a/src/MongODM.Core/ProxyModels/IProxyGenerator.cs b/src/MongODM.Core/ProxyModels/IProxyGenerator.cs index 10902b19..f6b208fd 100644 --- a/src/MongODM.Core/ProxyModels/IProxyGenerator.cs +++ b/src/MongODM.Core/ProxyModels/IProxyGenerator.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; namespace Etherna.MongODM.ProxyModels { diff --git a/src/MongODM.Core/ProxyModels/IReferenceable.cs b/src/MongODM.Core/ProxyModels/IReferenceable.cs index b842230d..7effea0a 100644 --- a/src/MongODM.Core/ProxyModels/IReferenceable.cs +++ b/src/MongODM.Core/ProxyModels/IReferenceable.cs @@ -1,4 +1,18 @@ -using System.Collections.Generic; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System.Collections.Generic; namespace Etherna.MongODM.ProxyModels { diff --git a/src/MongODM.Core/ProxyModels/ModelInterceptorBase.cs b/src/MongODM.Core/ProxyModels/ModelInterceptorBase.cs index 5f6232fe..dca32894 100644 --- a/src/MongODM.Core/ProxyModels/ModelInterceptorBase.cs +++ b/src/MongODM.Core/ProxyModels/ModelInterceptorBase.cs @@ -1,4 +1,18 @@ -using Castle.DynamicProxy; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Castle.DynamicProxy; using System; using System.Collections.Generic; using System.Linq; diff --git a/src/MongODM.Core/ProxyModels/ProxyGenerator.cs b/src/MongODM.Core/ProxyModels/ProxyGenerator.cs index 21190269..dca8690c 100644 --- a/src/MongODM.Core/ProxyModels/ProxyGenerator.cs +++ b/src/MongODM.Core/ProxyModels/ProxyGenerator.cs @@ -1,4 +1,18 @@ -using Castle.DynamicProxy; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Castle.DynamicProxy; using Etherna.MongODM.Models; using System; using System.Collections.Generic; diff --git a/src/MongODM.Core/ProxyModels/ReferenceableInterceptor.cs b/src/MongODM.Core/ProxyModels/ReferenceableInterceptor.cs index 3cf8425e..1c343485 100644 --- a/src/MongODM.Core/ProxyModels/ReferenceableInterceptor.cs +++ b/src/MongODM.Core/ProxyModels/ReferenceableInterceptor.cs @@ -1,4 +1,18 @@ -using Castle.DynamicProxy; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Castle.DynamicProxy; using Etherna.MongODM.Attributes; using Etherna.MongODM.Models; using Etherna.MongODM.Repositories; diff --git a/src/MongODM.Core/ReflectionHelper.cs b/src/MongODM.Core/ReflectionHelper.cs index 887881bd..f6b38b3c 100644 --- a/src/MongODM.Core/ReflectionHelper.cs +++ b/src/MongODM.Core/ReflectionHelper.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; diff --git a/src/MongODM.Core/Repositories/CollectionRepository.cs b/src/MongODM.Core/Repositories/CollectionRepository.cs index 04e4a460..9c0909c2 100644 --- a/src/MongODM.Core/Repositories/CollectionRepository.cs +++ b/src/MongODM.Core/Repositories/CollectionRepository.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Exceptions; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Exceptions; using Etherna.MongODM.Models; using Etherna.MongODM.ProxyModels; using Etherna.MongODM.Serialization; diff --git a/src/MongODM.Core/Repositories/CollectionRepositoryOptions.cs b/src/MongODM.Core/Repositories/CollectionRepositoryOptions.cs index 4cae2fdb..2adea8f9 100644 --- a/src/MongODM.Core/Repositories/CollectionRepositoryOptions.cs +++ b/src/MongODM.Core/Repositories/CollectionRepositoryOptions.cs @@ -1,4 +1,18 @@ -using MongoDB.Driver; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Driver; using System; using System.Collections.Generic; diff --git a/src/MongODM.Core/Repositories/GridFSRepository.cs b/src/MongODM.Core/Repositories/GridFSRepository.cs index 57fb69fd..3aa65a33 100644 --- a/src/MongODM.Core/Repositories/GridFSRepository.cs +++ b/src/MongODM.Core/Repositories/GridFSRepository.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Exceptions; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Exceptions; using Etherna.MongODM.Models; using Etherna.MongODM.Serialization; using MongoDB.Bson; diff --git a/src/MongODM.Core/Repositories/GridFSRepositoryOptions.cs b/src/MongODM.Core/Repositories/GridFSRepositoryOptions.cs index 5364a889..0ce4daab 100644 --- a/src/MongODM.Core/Repositories/GridFSRepositoryOptions.cs +++ b/src/MongODM.Core/Repositories/GridFSRepositoryOptions.cs @@ -1,4 +1,18 @@ -using MongoDB.Bson; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Bson; using System; namespace Etherna.MongODM.Repositories diff --git a/src/MongODM.Core/Repositories/ICollectionRepository.cs b/src/MongODM.Core/Repositories/ICollectionRepository.cs index 1eecf98c..f92628fd 100644 --- a/src/MongODM.Core/Repositories/ICollectionRepository.cs +++ b/src/MongODM.Core/Repositories/ICollectionRepository.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using MongoDB.Driver; using MongoDB.Driver.Linq; using System; diff --git a/src/MongODM.Core/Repositories/IGridFSRepository.cs b/src/MongODM.Core/Repositories/IGridFSRepository.cs index 6b8f4457..5d94d34e 100644 --- a/src/MongODM.Core/Repositories/IGridFSRepository.cs +++ b/src/MongODM.Core/Repositories/IGridFSRepository.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using MongoDB.Driver.GridFS; using System.IO; using System.Threading; diff --git a/src/MongODM.Core/Repositories/IRepository.cs b/src/MongODM.Core/Repositories/IRepository.cs index 73fa5760..7937552c 100644 --- a/src/MongODM.Core/Repositories/IRepository.cs +++ b/src/MongODM.Core/Repositories/IRepository.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using Etherna.MongODM.Serialization; using System; using System.Collections.Generic; diff --git a/src/MongODM.Core/Repositories/IRepositoryRegister.cs b/src/MongODM.Core/Repositories/IRepositoryRegister.cs index 3a75332e..ebadb330 100644 --- a/src/MongODM.Core/Repositories/IRepositoryRegister.cs +++ b/src/MongODM.Core/Repositories/IRepositoryRegister.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; using System.Collections.Generic; namespace Etherna.MongODM.Repositories diff --git a/src/MongODM.Core/Repositories/RepositoryBase.cs b/src/MongODM.Core/Repositories/RepositoryBase.cs index 3d98ee07..36a412f2 100644 --- a/src/MongODM.Core/Repositories/RepositoryBase.cs +++ b/src/MongODM.Core/Repositories/RepositoryBase.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Exceptions; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Exceptions; using Etherna.MongODM.Models; using Etherna.MongODM.ProxyModels; using Etherna.MongODM.Serialization; diff --git a/src/MongODM.Core/Repositories/RepositoryOptionsBase.cs b/src/MongODM.Core/Repositories/RepositoryOptionsBase.cs index d8c5b0fd..5f1279d6 100644 --- a/src/MongODM.Core/Repositories/RepositoryOptionsBase.cs +++ b/src/MongODM.Core/Repositories/RepositoryOptionsBase.cs @@ -1,4 +1,18 @@ -namespace Etherna.MongODM.Repositories +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +namespace Etherna.MongODM.Repositories { public abstract class RepositoryOptionsBase { diff --git a/src/MongODM.Core/Repositories/RepositoryRegister.cs b/src/MongODM.Core/Repositories/RepositoryRegister.cs index ad1dec50..156b6a2e 100644 --- a/src/MongODM.Core/Repositories/RepositoryRegister.cs +++ b/src/MongODM.Core/Repositories/RepositoryRegister.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; using System.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/src/MongODM.Core/Serialization/DocumentSchema.cs b/src/MongODM.Core/Serialization/DocumentSchema.cs index 6c597760..c3ba3089 100644 --- a/src/MongODM.Core/Serialization/DocumentSchema.cs +++ b/src/MongODM.Core/Serialization/DocumentSchema.cs @@ -1,4 +1,18 @@ -using MongoDB.Bson.Serialization; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Bson.Serialization; using System; namespace Etherna.MongODM.Serialization diff --git a/src/MongODM.Core/Serialization/DocumentSchemaMemberMap.cs b/src/MongODM.Core/Serialization/DocumentSchemaMemberMap.cs index cc4729d2..028f795a 100644 --- a/src/MongODM.Core/Serialization/DocumentSchemaMemberMap.cs +++ b/src/MongODM.Core/Serialization/DocumentSchemaMemberMap.cs @@ -1,4 +1,18 @@ -using MongoDB.Bson.Serialization; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Bson.Serialization; using System; using System.Collections.Generic; using System.Linq; diff --git a/src/MongODM.Core/Serialization/DocumentSchemaRegister.cs b/src/MongODM.Core/Serialization/DocumentSchemaRegister.cs index 22eb9520..ce687f32 100644 --- a/src/MongODM.Core/Serialization/DocumentSchemaRegister.cs +++ b/src/MongODM.Core/Serialization/DocumentSchemaRegister.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using Etherna.MongODM.Serialization.Modifiers; using Etherna.MongODM.Serialization.Serializers; using MongoDB.Bson.Serialization; diff --git a/src/MongODM.Core/Serialization/DocumentVersion.cs b/src/MongODM.Core/Serialization/DocumentVersion.cs index b31d4082..f5247cf3 100644 --- a/src/MongODM.Core/Serialization/DocumentVersion.cs +++ b/src/MongODM.Core/Serialization/DocumentVersion.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; using System.Text; using System.Text.RegularExpressions; diff --git a/src/MongODM.Core/Serialization/EntityMember.cs b/src/MongODM.Core/Serialization/EntityMember.cs index 0c33ad15..e85b5eaf 100644 --- a/src/MongODM.Core/Serialization/EntityMember.cs +++ b/src/MongODM.Core/Serialization/EntityMember.cs @@ -1,4 +1,18 @@ -using MongoDB.Bson.Serialization; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Bson.Serialization; namespace Etherna.MongODM.Serialization { diff --git a/src/MongODM.Core/Serialization/ExtendedBsonDocumentReader.cs b/src/MongODM.Core/Serialization/ExtendedBsonDocumentReader.cs index c26927e0..50ca3ebe 100644 --- a/src/MongODM.Core/Serialization/ExtendedBsonDocumentReader.cs +++ b/src/MongODM.Core/Serialization/ExtendedBsonDocumentReader.cs @@ -1,4 +1,18 @@ -using MongoDB.Bson; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Bson; using MongoDB.Bson.IO; namespace Etherna.MongODM.Serialization diff --git a/src/MongODM.Core/Serialization/ExtendedBsonDocumentWriter.cs b/src/MongODM.Core/Serialization/ExtendedBsonDocumentWriter.cs index c895749f..a063a744 100644 --- a/src/MongODM.Core/Serialization/ExtendedBsonDocumentWriter.cs +++ b/src/MongODM.Core/Serialization/ExtendedBsonDocumentWriter.cs @@ -1,4 +1,18 @@ -using MongoDB.Bson; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Bson; using MongoDB.Bson.IO; namespace Etherna.MongODM.Serialization diff --git a/src/MongODM.Core/Serialization/IDocumentSchemaRegister.cs b/src/MongODM.Core/Serialization/IDocumentSchemaRegister.cs index 149b6bc2..76c7264b 100644 --- a/src/MongODM.Core/Serialization/IDocumentSchemaRegister.cs +++ b/src/MongODM.Core/Serialization/IDocumentSchemaRegister.cs @@ -1,4 +1,18 @@ -using MongoDB.Bson.Serialization; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Bson.Serialization; using System; using System.Collections.Generic; using System.Reflection; diff --git a/src/MongODM.Core/Serialization/IModelSerializerCollector.cs b/src/MongODM.Core/Serialization/IModelSerializerCollector.cs index 6a59c0d5..910ccbca 100644 --- a/src/MongODM.Core/Serialization/IModelSerializerCollector.cs +++ b/src/MongODM.Core/Serialization/IModelSerializerCollector.cs @@ -1,4 +1,18 @@ -namespace Etherna.MongODM.Serialization +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +namespace Etherna.MongODM.Serialization { public interface IModelSerializerCollector { diff --git a/src/MongODM.Core/Serialization/Modifiers/CacheSerializerModifier.cs b/src/MongODM.Core/Serialization/Modifiers/CacheSerializerModifier.cs index f61f0105..c662913c 100644 --- a/src/MongODM.Core/Serialization/Modifiers/CacheSerializerModifier.cs +++ b/src/MongODM.Core/Serialization/Modifiers/CacheSerializerModifier.cs @@ -1,4 +1,18 @@ -using Etherna.ExecContext; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.ExecContext; using Etherna.ExecContext.Exceptions; using System; using System.Collections; diff --git a/src/MongODM.Core/Serialization/Modifiers/ISerializerModifierAccessor.cs b/src/MongODM.Core/Serialization/Modifiers/ISerializerModifierAccessor.cs index ad6d5fb0..d663d160 100644 --- a/src/MongODM.Core/Serialization/Modifiers/ISerializerModifierAccessor.cs +++ b/src/MongODM.Core/Serialization/Modifiers/ISerializerModifierAccessor.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; namespace Etherna.MongODM.Serialization.Modifiers { diff --git a/src/MongODM.Core/Serialization/Modifiers/ReferenceSerializerModifier.cs b/src/MongODM.Core/Serialization/Modifiers/ReferenceSerializerModifier.cs index 8d43886a..b5f56a85 100644 --- a/src/MongODM.Core/Serialization/Modifiers/ReferenceSerializerModifier.cs +++ b/src/MongODM.Core/Serialization/Modifiers/ReferenceSerializerModifier.cs @@ -1,4 +1,18 @@ -using Etherna.ExecContext; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.ExecContext; using Etherna.ExecContext.Exceptions; using System; using System.Collections; diff --git a/src/MongODM.Core/Serialization/Modifiers/SerializerModifierAccessor.cs b/src/MongODM.Core/Serialization/Modifiers/SerializerModifierAccessor.cs index 42bb6b07..ea9bec24 100644 --- a/src/MongODM.Core/Serialization/Modifiers/SerializerModifierAccessor.cs +++ b/src/MongODM.Core/Serialization/Modifiers/SerializerModifierAccessor.cs @@ -1,4 +1,18 @@ -using Etherna.ExecContext; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.ExecContext; using System; namespace Etherna.MongODM.Serialization.Modifiers diff --git a/src/MongODM.Core/Serialization/Serializers/DictionarySerializer.cs b/src/MongODM.Core/Serialization/Serializers/DictionarySerializer.cs index 61982577..e6c21e28 100644 --- a/src/MongODM.Core/Serialization/Serializers/DictionarySerializer.cs +++ b/src/MongODM.Core/Serialization/Serializers/DictionarySerializer.cs @@ -1,4 +1,18 @@ -using MongoDB.Bson.Serialization; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.Options; using MongoDB.Bson.Serialization.Serializers; using System.Collections.Generic; diff --git a/src/MongODM.Core/Serialization/Serializers/EnumerableSerializer.cs b/src/MongODM.Core/Serialization/Serializers/EnumerableSerializer.cs index f108bf27..9e980173 100644 --- a/src/MongODM.Core/Serialization/Serializers/EnumerableSerializer.cs +++ b/src/MongODM.Core/Serialization/Serializers/EnumerableSerializer.cs @@ -1,4 +1,18 @@ -using MongoDB.Bson.Serialization; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.Serializers; using System.Collections.Generic; diff --git a/src/MongODM.Core/Serialization/Serializers/ExtendedClassMapSerializer.cs b/src/MongODM.Core/Serialization/Serializers/ExtendedClassMapSerializer.cs index a8266eca..a2c0d59c 100644 --- a/src/MongODM.Core/Serialization/Serializers/ExtendedClassMapSerializer.cs +++ b/src/MongODM.Core/Serialization/Serializers/ExtendedClassMapSerializer.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using Etherna.MongODM.ProxyModels; using Etherna.MongODM.Serialization.Modifiers; using Etherna.MongODM.Utility; diff --git a/src/MongODM.Core/Serialization/Serializers/ExtraElementsSerializer.cs b/src/MongODM.Core/Serialization/Serializers/ExtraElementsSerializer.cs index 77778436..f8cd935d 100644 --- a/src/MongODM.Core/Serialization/Serializers/ExtraElementsSerializer.cs +++ b/src/MongODM.Core/Serialization/Serializers/ExtraElementsSerializer.cs @@ -1,4 +1,18 @@ -using MongoDB.Bson; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Bson; using MongoDB.Bson.IO; using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.Serializers; diff --git a/src/MongODM.Core/Serialization/Serializers/GeoPointSerializer.cs b/src/MongODM.Core/Serialization/Serializers/GeoPointSerializer.cs index 0b117bb6..0cf522a6 100644 --- a/src/MongODM.Core/Serialization/Serializers/GeoPointSerializer.cs +++ b/src/MongODM.Core/Serialization/Serializers/GeoPointSerializer.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.ProxyModels; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.ProxyModels; using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.Serializers; using MongoDB.Driver.GeoJsonObjectModel; diff --git a/src/MongODM.Core/Serialization/Serializers/HexToBinaryDataSerializer.cs b/src/MongODM.Core/Serialization/Serializers/HexToBinaryDataSerializer.cs index 908a7e28..43a36124 100644 --- a/src/MongODM.Core/Serialization/Serializers/HexToBinaryDataSerializer.cs +++ b/src/MongODM.Core/Serialization/Serializers/HexToBinaryDataSerializer.cs @@ -1,4 +1,18 @@ -using MongoDB.Bson; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Bson; using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.Serializers; using System; diff --git a/src/MongODM.Core/Serialization/Serializers/IClassMapContainerSerializer.cs b/src/MongODM.Core/Serialization/Serializers/IClassMapContainerSerializer.cs index 2e48380b..fca2af9b 100644 --- a/src/MongODM.Core/Serialization/Serializers/IClassMapContainerSerializer.cs +++ b/src/MongODM.Core/Serialization/Serializers/IClassMapContainerSerializer.cs @@ -1,4 +1,18 @@ -using MongoDB.Bson.Serialization; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Bson.Serialization; using System.Collections.Generic; namespace Etherna.MongODM.Serialization.Serializers diff --git a/src/MongODM.Core/Serialization/Serializers/IReferenceContainerSerializer.cs b/src/MongODM.Core/Serialization/Serializers/IReferenceContainerSerializer.cs index 0e3705cb..fac27919 100644 --- a/src/MongODM.Core/Serialization/Serializers/IReferenceContainerSerializer.cs +++ b/src/MongODM.Core/Serialization/Serializers/IReferenceContainerSerializer.cs @@ -1,4 +1,18 @@ -namespace Etherna.MongODM.Serialization.Serializers +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +namespace Etherna.MongODM.Serialization.Serializers { public interface IReferenceContainerSerializer : IClassMapContainerSerializer { diff --git a/src/MongODM.Core/Serialization/Serializers/ReadOnlyDictionarySerializer.cs b/src/MongODM.Core/Serialization/Serializers/ReadOnlyDictionarySerializer.cs index d3eff7ab..a5bac97e 100644 --- a/src/MongODM.Core/Serialization/Serializers/ReadOnlyDictionarySerializer.cs +++ b/src/MongODM.Core/Serialization/Serializers/ReadOnlyDictionarySerializer.cs @@ -1,4 +1,18 @@ -using MongoDB.Bson.Serialization; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.Options; using MongoDB.Bson.Serialization.Serializers; using System.Collections.Generic; diff --git a/src/MongODM.Core/Serialization/Serializers/ReferenceSerializer.cs b/src/MongODM.Core/Serialization/Serializers/ReferenceSerializer.cs index eecdcf27..15084c20 100644 --- a/src/MongODM.Core/Serialization/Serializers/ReferenceSerializer.cs +++ b/src/MongODM.Core/Serialization/Serializers/ReferenceSerializer.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using Etherna.MongODM.ProxyModels; using Etherna.MongODM.Serialization.Modifiers; using Etherna.MongODM.Utility; diff --git a/src/MongODM.Core/Serialization/Serializers/ReferenceSerializerAdapter.cs b/src/MongODM.Core/Serialization/Serializers/ReferenceSerializerAdapter.cs index 8b5ad16f..3b8bb892 100644 --- a/src/MongODM.Core/Serialization/Serializers/ReferenceSerializerAdapter.cs +++ b/src/MongODM.Core/Serialization/Serializers/ReferenceSerializerAdapter.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.Serializers; using System; diff --git a/src/MongODM.Core/Serialization/Serializers/ReferenceSerializerSwitch.cs b/src/MongODM.Core/Serialization/Serializers/ReferenceSerializerSwitch.cs index 06213407..6e48f049 100644 --- a/src/MongODM.Core/Serialization/Serializers/ReferenceSerializerSwitch.cs +++ b/src/MongODM.Core/Serialization/Serializers/ReferenceSerializerSwitch.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using MongoDB.Bson.Serialization; using MongoDB.Bson.Serialization.Serializers; using System; diff --git a/src/MongODM.Core/Tasks/ITaskRunner.cs b/src/MongODM.Core/Tasks/ITaskRunner.cs index 51af70d0..aa65ffa7 100644 --- a/src/MongODM.Core/Tasks/ITaskRunner.cs +++ b/src/MongODM.Core/Tasks/ITaskRunner.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; using System.Collections.Generic; namespace Etherna.MongODM.Tasks diff --git a/src/MongODM.Core/Tasks/IUpdateDocDependenciesTask.cs b/src/MongODM.Core/Tasks/IUpdateDocDependenciesTask.cs index e72fdbd6..22c882ca 100644 --- a/src/MongODM.Core/Tasks/IUpdateDocDependenciesTask.cs +++ b/src/MongODM.Core/Tasks/IUpdateDocDependenciesTask.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/MongODM.Core/Tasks/Queues.cs b/src/MongODM.Core/Tasks/Queues.cs index d44fde97..437c2fea 100644 --- a/src/MongODM.Core/Tasks/Queues.cs +++ b/src/MongODM.Core/Tasks/Queues.cs @@ -1,4 +1,18 @@ -namespace Etherna.MongODM.Tasks +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +namespace Etherna.MongODM.Tasks { public class Queues { diff --git a/src/MongODM.Core/Tasks/UpdateDocDependenciesTask.cs b/src/MongODM.Core/Tasks/UpdateDocDependenciesTask.cs index 67b24a67..0bc36292 100644 --- a/src/MongODM.Core/Tasks/UpdateDocDependenciesTask.cs +++ b/src/MongODM.Core/Tasks/UpdateDocDependenciesTask.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using Etherna.MongODM.Repositories; using Etherna.MongODM.Serialization.Modifiers; using MongoDB.Driver; diff --git a/src/MongODM.Core/Utility/DBCache.cs b/src/MongODM.Core/Utility/DBCache.cs index 6eaa5b7d..4a34a389 100644 --- a/src/MongODM.Core/Utility/DBCache.cs +++ b/src/MongODM.Core/Utility/DBCache.cs @@ -1,4 +1,18 @@ -using Etherna.ExecContext; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.ExecContext; using Etherna.MongODM.Models; using System; using System.Collections.Generic; diff --git a/src/MongODM.Core/Utility/DBMaintainer.cs b/src/MongODM.Core/Utility/DBMaintainer.cs index e871015a..333d76f1 100644 --- a/src/MongODM.Core/Utility/DBMaintainer.cs +++ b/src/MongODM.Core/Utility/DBMaintainer.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.ProxyModels; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.ProxyModels; using Etherna.MongODM.Tasks; using MongoDB.Driver; using System; diff --git a/src/MongODM.Core/Utility/DbContextDependencies.cs b/src/MongODM.Core/Utility/DbContextDependencies.cs index 3eb308f3..3fb8c1c5 100644 --- a/src/MongODM.Core/Utility/DbContextDependencies.cs +++ b/src/MongODM.Core/Utility/DbContextDependencies.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.ProxyModels; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.ProxyModels; using Etherna.MongODM.Repositories; using Etherna.MongODM.Serialization; using Etherna.MongODM.Serialization.Modifiers; diff --git a/src/MongODM.Core/Utility/IDBCache.cs b/src/MongODM.Core/Utility/IDBCache.cs index 7979c869..dd5e111d 100644 --- a/src/MongODM.Core/Utility/IDBCache.cs +++ b/src/MongODM.Core/Utility/IDBCache.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using System.Collections.Generic; namespace Etherna.MongODM.Utility diff --git a/src/MongODM.Core/Utility/IDBMaintainer.cs b/src/MongODM.Core/Utility/IDBMaintainer.cs index db9c9da3..d66df72c 100644 --- a/src/MongODM.Core/Utility/IDBMaintainer.cs +++ b/src/MongODM.Core/Utility/IDBMaintainer.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.ProxyModels; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.ProxyModels; namespace Etherna.MongODM.Utility { diff --git a/src/MongODM.Core/Utility/IDbContextDependencies.cs b/src/MongODM.Core/Utility/IDbContextDependencies.cs index bc8d335b..0abd0819 100644 --- a/src/MongODM.Core/Utility/IDbContextDependencies.cs +++ b/src/MongODM.Core/Utility/IDbContextDependencies.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.ProxyModels; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.ProxyModels; using Etherna.MongODM.Repositories; using Etherna.MongODM.Serialization; using Etherna.MongODM.Serialization.Modifiers; diff --git a/src/MongODM.Hangfire/Filters/AsyncLocalContextHangfireFilter.cs b/src/MongODM.Hangfire/Filters/AsyncLocalContextHangfireFilter.cs index 915b0aab..9191b995 100644 --- a/src/MongODM.Hangfire/Filters/AsyncLocalContextHangfireFilter.cs +++ b/src/MongODM.Hangfire/Filters/AsyncLocalContextHangfireFilter.cs @@ -1,4 +1,18 @@ -using Etherna.ExecContext.AsyncLocal; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.ExecContext.AsyncLocal; using Hangfire.Server; using System; using System.Collections.Generic; diff --git a/src/MongODM.Hangfire/MongODM.Hangfire.csproj b/src/MongODM.Hangfire/MongODM.Hangfire.csproj index 137577e9..8425c79a 100644 --- a/src/MongODM.Hangfire/MongODM.Hangfire.csproj +++ b/src/MongODM.Hangfire/MongODM.Hangfire.csproj @@ -9,6 +9,7 @@ 8.0 enable https://github.com/Etherna/mongodm + LICENSE.txt @@ -27,4 +28,11 @@ + + + True + + + + diff --git a/src/MongODM.Hangfire/Tasks/HangfireTaskRunner.cs b/src/MongODM.Hangfire/Tasks/HangfireTaskRunner.cs index d86d0da9..65863f95 100644 --- a/src/MongODM.Hangfire/Tasks/HangfireTaskRunner.cs +++ b/src/MongODM.Hangfire/Tasks/HangfireTaskRunner.cs @@ -1,4 +1,18 @@ -using Etherna.ExecContext.AsyncLocal; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.ExecContext.AsyncLocal; using Etherna.MongODM.HF.Filters; using Etherna.MongODM.Tasks; using Hangfire; diff --git a/src/MongODM.Hangfire/Tasks/UpdateDocDependenciesTaskFacade.cs b/src/MongODM.Hangfire/Tasks/UpdateDocDependenciesTaskFacade.cs index 16644c88..362af942 100644 --- a/src/MongODM.Hangfire/Tasks/UpdateDocDependenciesTaskFacade.cs +++ b/src/MongODM.Hangfire/Tasks/UpdateDocDependenciesTaskFacade.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Tasks; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Tasks; using Hangfire; using System; using System.Collections.Generic; diff --git a/test/ExecutionContext.Tests/AsyncLocal/AsyncLocalContextHandlerTests.cs b/test/ExecutionContext.Tests/AsyncLocal/AsyncLocalContextHandlerTests.cs index cda2b389..3e8bea37 100644 --- a/test/ExecutionContext.Tests/AsyncLocal/AsyncLocalContextHandlerTests.cs +++ b/test/ExecutionContext.Tests/AsyncLocal/AsyncLocalContextHandlerTests.cs @@ -1,4 +1,18 @@ -using Moq; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Moq; using Xunit; namespace Etherna.ExecContext.AsyncLocal diff --git a/test/ExecutionContext.Tests/AsyncLocal/AsyncLocalContextTests.cs b/test/ExecutionContext.Tests/AsyncLocal/AsyncLocalContextTests.cs index cb5d3059..b97c9d9d 100644 --- a/test/ExecutionContext.Tests/AsyncLocal/AsyncLocalContextTests.cs +++ b/test/ExecutionContext.Tests/AsyncLocal/AsyncLocalContextTests.cs @@ -1,4 +1,18 @@ -using System.Threading.Tasks; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System.Threading.Tasks; using Xunit; namespace Etherna.ExecContext.AsyncLocal diff --git a/test/ExecutionContext.Tests/ExecutionContextSelectorTests.cs b/test/ExecutionContext.Tests/ExecutionContextSelectorTests.cs index 5e0c1747..793d4f95 100644 --- a/test/ExecutionContext.Tests/ExecutionContextSelectorTests.cs +++ b/test/ExecutionContext.Tests/ExecutionContextSelectorTests.cs @@ -1,4 +1,18 @@ -using Moq; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Moq; using System; using System.Collections.Generic; using Xunit; diff --git a/test/MongODM.Core.Tests/Comparers/FakeModelComparer.cs b/test/MongODM.Core.Tests/Comparers/FakeModelComparer.cs index da09fd75..7c084e4d 100644 --- a/test/MongODM.Core.Tests/Comparers/FakeModelComparer.cs +++ b/test/MongODM.Core.Tests/Comparers/FakeModelComparer.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Models; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Models; using System.Collections.Generic; using System.Linq; diff --git a/test/MongODM.Core.Tests/ExtendedClassMapSerializerTest.cs b/test/MongODM.Core.Tests/ExtendedClassMapSerializerTest.cs index ffff574b..98ca63e3 100644 --- a/test/MongODM.Core.Tests/ExtendedClassMapSerializerTest.cs +++ b/test/MongODM.Core.Tests/ExtendedClassMapSerializerTest.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Comparers; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.Comparers; using Etherna.MongODM.Models; using Etherna.MongODM.Serialization; using Etherna.MongODM.Serialization.Modifiers; diff --git a/test/MongODM.Core.Tests/MockHelpers/InterceptorMockHelper.cs b/test/MongODM.Core.Tests/MockHelpers/InterceptorMockHelper.cs index 4dba6db5..46482745 100644 --- a/test/MongODM.Core.Tests/MockHelpers/InterceptorMockHelper.cs +++ b/test/MongODM.Core.Tests/MockHelpers/InterceptorMockHelper.cs @@ -1,4 +1,18 @@ -using Moq; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Moq; using System; using System.Linq.Expressions; diff --git a/test/MongODM.Core.Tests/Models/FakeEntityModelBase.cs b/test/MongODM.Core.Tests/Models/FakeEntityModelBase.cs index 533d7a08..33754232 100644 --- a/test/MongODM.Core.Tests/Models/FakeEntityModelBase.cs +++ b/test/MongODM.Core.Tests/Models/FakeEntityModelBase.cs @@ -1,4 +1,18 @@ -using System; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System; namespace Etherna.MongODM.Models { diff --git a/test/MongODM.Core.Tests/Models/FakeModel.cs b/test/MongODM.Core.Tests/Models/FakeModel.cs index a532c116..1b395bd3 100644 --- a/test/MongODM.Core.Tests/Models/FakeModel.cs +++ b/test/MongODM.Core.Tests/Models/FakeModel.cs @@ -1,4 +1,18 @@ -using System.Collections.Generic; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System.Collections.Generic; namespace Etherna.MongODM.Models { diff --git a/test/MongODM.Core.Tests/Models/FakeModelProxy.cs b/test/MongODM.Core.Tests/Models/FakeModelProxy.cs index 5d7e3fa0..109a1d09 100644 --- a/test/MongODM.Core.Tests/Models/FakeModelProxy.cs +++ b/test/MongODM.Core.Tests/Models/FakeModelProxy.cs @@ -1,4 +1,18 @@ -namespace Etherna.MongODM.Models +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +namespace Etherna.MongODM.Models { public class FakeModelProxy : FakeModel { diff --git a/test/MongODM.Core.Tests/Models/ModelBase.cs b/test/MongODM.Core.Tests/Models/ModelBase.cs index c1eb4e2a..dcc80aa0 100644 --- a/test/MongODM.Core.Tests/Models/ModelBase.cs +++ b/test/MongODM.Core.Tests/Models/ModelBase.cs @@ -1,4 +1,18 @@ -using System.Collections.Generic; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using System.Collections.Generic; namespace Etherna.MongODM.Models { diff --git a/test/MongODM.Core.Tests/ReferenceableInterceptorTest.cs b/test/MongODM.Core.Tests/ReferenceableInterceptorTest.cs index 473ba8ae..32c77e43 100644 --- a/test/MongODM.Core.Tests/ReferenceableInterceptorTest.cs +++ b/test/MongODM.Core.Tests/ReferenceableInterceptorTest.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.MockHelpers; +// Copyright 2020-present Etherna Sagl +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +using Etherna.MongODM.MockHelpers; using Etherna.MongODM.Models; using Etherna.MongODM.ProxyModels; using Etherna.MongODM.Repositories;