diff --git a/src/MongODM.AspNetCore/Extensions/ApplicationBuilderExtensions.cs b/src/MongODM.AspNetCore/Extensions/ApplicationBuilderExtensions.cs index 88e55007..1eb2214f 100644 --- a/src/MongODM.AspNetCore/Extensions/ApplicationBuilderExtensions.cs +++ b/src/MongODM.AspNetCore/Extensions/ApplicationBuilderExtensions.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.Core; using Etherna.MongODM.Core.Options; using Microsoft.AspNetCore.Builder; diff --git a/src/MongODM.Core/Exceptions/MongodmDbSeedingException.cs b/src/MongODM.Core/Exceptions/MongodmDbSeedingException.cs index c9d0a045..020a132f 100644 --- a/src/MongODM.Core/Exceptions/MongodmDbSeedingException.cs +++ b/src/MongODM.Core/Exceptions/MongodmDbSeedingException.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.Core.Exceptions { diff --git a/src/MongODM.Core/Exceptions/MongodmIndexBuildingException.cs b/src/MongODM.Core/Exceptions/MongodmIndexBuildingException.cs index f57f5c47..2cecc519 100644 --- a/src/MongODM.Core/Exceptions/MongodmIndexBuildingException.cs +++ b/src/MongODM.Core/Exceptions/MongodmIndexBuildingException.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.Core.Exceptions { diff --git a/src/MongODM.Core/IDbContextBuilder.cs b/src/MongODM.Core/IDbContextBuilder.cs index fef5fb24..1dcdaa7d 100644 --- a/src/MongODM.Core/IDbContextBuilder.cs +++ b/src/MongODM.Core/IDbContextBuilder.cs @@ -1,4 +1,18 @@ -using Etherna.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 Etherna.MongoDB.Driver; using Etherna.MongODM.Core.Options; using System.Collections.Generic; diff --git a/src/MongODM.Core/Options/MongODMOptionsBuilder.cs b/src/MongODM.Core/Options/MongODMOptionsBuilder.cs index 91167983..94a23358 100644 --- a/src/MongODM.Core/Options/MongODMOptionsBuilder.cs +++ b/src/MongODM.Core/Options/MongODMOptionsBuilder.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.Core.Options diff --git a/src/MongODM.Core/Properties/IsExternalInit.cs b/src/MongODM.Core/Properties/IsExternalInit.cs index d3603fa5..252ec65e 100644 --- a/src/MongODM.Core/Properties/IsExternalInit.cs +++ b/src/MongODM.Core/Properties/IsExternalInit.cs @@ -1,4 +1,18 @@ -// Required because of this https://developercommunity.visualstudio.com/t/error-cs0518-predefined-type-systemruntimecompiler/1244809 +// 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. + +// Required because of this https://developercommunity.visualstudio.com/t/error-cs0518-predefined-type-systemruntimecompiler/1244809 namespace System.Runtime.CompilerServices { internal static class IsExternalInit { } diff --git a/src/MongODM.Core/Repositories/PaginatedEnumerable.cs b/src/MongODM.Core/Repositories/PaginatedEnumerable.cs index 6f2c9a09..d2f45986 100644 --- a/src/MongODM.Core/Repositories/PaginatedEnumerable.cs +++ b/src/MongODM.Core/Repositories/PaginatedEnumerable.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.Core.Repositories { diff --git a/src/MongODM.Core/Serialization/Mapping/DiscriminatorRegistry.cs b/src/MongODM.Core/Serialization/Mapping/DiscriminatorRegistry.cs index c0c4114e..49ec517c 100644 --- a/src/MongODM.Core/Serialization/Mapping/DiscriminatorRegistry.cs +++ b/src/MongODM.Core/Serialization/Mapping/DiscriminatorRegistry.cs @@ -1,4 +1,18 @@ -using Etherna.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 Etherna.MongoDB.Bson; using Etherna.MongoDB.Bson.Serialization.Conventions; using Etherna.MongODM.Core.Conventions; using System; diff --git a/src/MongODM.Core/Serialization/Mapping/IDiscriminatorRegistry.cs b/src/MongODM.Core/Serialization/Mapping/IDiscriminatorRegistry.cs index eb77e408..a0ee2e1b 100644 --- a/src/MongODM.Core/Serialization/Mapping/IDiscriminatorRegistry.cs +++ b/src/MongODM.Core/Serialization/Mapping/IDiscriminatorRegistry.cs @@ -1,4 +1,18 @@ -using Etherna.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 Etherna.MongoDB.Bson; using Etherna.MongoDB.Bson.Serialization.Conventions; using System; diff --git a/src/MongODM.Core/Serialization/Providers/ModelMapSerializationProvider.cs b/src/MongODM.Core/Serialization/Providers/ModelMapSerializationProvider.cs index b17e2a6b..5fa0cc2a 100644 --- a/src/MongODM.Core/Serialization/Providers/ModelMapSerializationProvider.cs +++ b/src/MongODM.Core/Serialization/Providers/ModelMapSerializationProvider.cs @@ -1,4 +1,18 @@ -using Etherna.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 Etherna.MongoDB.Bson; using Etherna.MongoDB.Bson.Serialization; using Etherna.MongODM.Core.Serialization.Serializers; using System; diff --git a/src/MongODM.Core/Tasks/ITaskRunnerBuilder.cs b/src/MongODM.Core/Tasks/ITaskRunnerBuilder.cs index a7d64bb6..45a32c11 100644 --- a/src/MongODM.Core/Tasks/ITaskRunnerBuilder.cs +++ b/src/MongODM.Core/Tasks/ITaskRunnerBuilder.cs @@ -1,4 +1,18 @@ -using Etherna.MongODM.Core.Options; +// 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.Core.Options; namespace Etherna.MongODM.Core.Tasks { diff --git a/src/MongODM.Core/Utility/DbExecutionContextHandler.cs b/src/MongODM.Core/Utility/DbExecutionContextHandler.cs index 242d48fd..2eba35b5 100644 --- a/src/MongODM.Core/Utility/DbExecutionContextHandler.cs +++ b/src/MongODM.Core/Utility/DbExecutionContextHandler.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 System; using System.Collections; diff --git a/src/MongODM.Core/Utility/SerializationContextAccessor.cs b/src/MongODM.Core/Utility/SerializationContextAccessor.cs index 4bda1f2b..4adf0697 100644 --- a/src/MongODM.Core/Utility/SerializationContextAccessor.cs +++ b/src/MongODM.Core/Utility/SerializationContextAccessor.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.MongoDB.Bson.Serialization; namespace Etherna.MongODM.Core.Utility diff --git a/src/MongODM.Hangfire/Extensions/HangfireGlobalConfigExtension.cs b/src/MongODM.Hangfire/Extensions/HangfireGlobalConfigExtension.cs index 7a88ce78..a527a5e1 100644 --- a/src/MongODM.Hangfire/Extensions/HangfireGlobalConfigExtension.cs +++ b/src/MongODM.Hangfire/Extensions/HangfireGlobalConfigExtension.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; namespace Hangfire