Skip to content

Commit

Permalink
add license headers
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm360 committed Jun 15, 2022
1 parent e47e577 commit 779abe9
Show file tree
Hide file tree
Showing 14 changed files with 210 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
16 changes: 15 additions & 1 deletion src/MongODM.Core/Exceptions/MongodmDbSeedingException.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
16 changes: 15 additions & 1 deletion src/MongODM.Core/Exceptions/MongodmIndexBuildingException.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
16 changes: 15 additions & 1 deletion src/MongODM.Core/IDbContextBuilder.cs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
16 changes: 15 additions & 1 deletion src/MongODM.Core/Options/MongODMOptionsBuilder.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
16 changes: 15 additions & 1 deletion src/MongODM.Core/Properties/IsExternalInit.cs
Original file line number Diff line number Diff line change
@@ -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 { }
Expand Down
16 changes: 15 additions & 1 deletion src/MongODM.Core/Repositories/PaginatedEnumerable.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
16 changes: 15 additions & 1 deletion src/MongODM.Core/Serialization/Mapping/DiscriminatorRegistry.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
16 changes: 15 additions & 1 deletion src/MongODM.Core/Serialization/Mapping/IDiscriminatorRegistry.cs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
16 changes: 15 additions & 1 deletion src/MongODM.Core/Tasks/ITaskRunnerBuilder.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down
16 changes: 15 additions & 1 deletion src/MongODM.Core/Utility/DbExecutionContextHandler.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
16 changes: 15 additions & 1 deletion src/MongODM.Core/Utility/SerializationContextAccessor.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
16 changes: 15 additions & 1 deletion src/MongODM.Hangfire/Extensions/HangfireGlobalConfigExtension.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 779abe9

Please sign in to comment.