Skip to content

Commit

Permalink
Add license headers
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinchalet committed Dec 7, 2024
1 parent dd6eee4 commit 4270749
Show file tree
Hide file tree
Showing 73 changed files with 511 additions and 73 deletions.
8 changes: 7 additions & 1 deletion src/OpenNetty.Daemon/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System.Reactive.Linq;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

using System.Reactive.Linq;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;

Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty.Mqtt/IOpenNettyMqttWorker.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System.Threading.Channels;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

using System.Threading.Channels;
using MQTTnet;
using MQTTnet.Extensions.ManagedClient;

Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty.Mqtt/OpenNettyMqttAttributes.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
namespace OpenNetty.Mqtt;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

namespace OpenNetty.Mqtt;

/// <summary>
/// Exposes common attributes supported by the OpenNetty MQTT integration.
Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty.Mqtt/OpenNettyMqttBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System.ComponentModel;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

using System.ComponentModel;
using System.Xml.Linq;
using Microsoft.Extensions.FileProviders;
using MQTTnet.Client;
Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty.Mqtt/OpenNettyMqttConfiguration.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System.ComponentModel;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

using System.ComponentModel;
using Microsoft.Extensions.Options;

namespace OpenNetty.Mqtt;
Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty.Mqtt/OpenNettyMqttExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using Microsoft.Extensions.DependencyInjection.Extensions;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Options;
using MQTTnet;
using MQTTnet.Extensions.ManagedClient;
Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty.Mqtt/OpenNettyMqttHostedService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System.ComponentModel;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

using System.ComponentModel;
using System.Globalization;
using System.Net.Mime;
using System.Reactive.Disposables;
Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty.Mqtt/OpenNettyMqttOperation.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
namespace OpenNetty.Mqtt;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

namespace OpenNetty.Mqtt;

/// <summary>
/// Represents an OpenNetty MQTT operation.
Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty.Mqtt/OpenNettyMqttOptions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using MQTTnet.Client;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

using MQTTnet.Client;

namespace OpenNetty.Mqtt;

Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty.Mqtt/OpenNettyMqttWorker.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System.Globalization;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

using System.Globalization;
using System.Net.Mime;
using System.Reactive.Concurrency;
using System.Reactive.Linq;
Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty/IOpenNettyHandler.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
namespace OpenNetty;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

namespace OpenNetty;

/// <summary>
/// Represents an OpenNetty handler whose lifetime is controlled by the OpenNetty hosted service.
Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty/IOpenNettyPipeline.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System.ComponentModel;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

using System.ComponentModel;

namespace OpenNetty;

Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty/IOpenNettyService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System.Collections.Immutable;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

using System.Collections.Immutable;

namespace OpenNetty;

Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty/IOpenNettyWorker.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System.ComponentModel;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

using System.ComponentModel;
using System.Threading.Channels;

namespace OpenNetty;
Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty/OpenNettyAddress.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System.Collections.Immutable;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

using System.Collections.Immutable;
using System.Diagnostics;
using System.Globalization;
using System.Text;
Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty/OpenNettyAddressType.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
namespace OpenNetty;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

namespace OpenNetty;

/// <summary>
/// Exposes common OpenNetty address types, as defined by the Nitoo and MyHome specifications.
Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty/OpenNettyBrand.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
namespace OpenNetty;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

namespace OpenNetty;

/// <summary>
/// Represents the brand of an OpenNetty device.
Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty/OpenNettyBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System.Collections.Immutable;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

using System.Collections.Immutable;
using System.ComponentModel;
using System.Globalization;
using System.IO.Ports;
Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty/OpenNettyCapabilities.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
namespace OpenNetty;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

namespace OpenNetty;

/// <summary>
/// Exposes common capabilities supported by OpenNetty endpoints or devices.
Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty/OpenNettyCapability.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
namespace OpenNetty;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

namespace OpenNetty;

/// <summary>
/// Represents a capability supported by an OpenNetty endpoint or device.
Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty/OpenNettyCategories.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
namespace OpenNetty;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

namespace OpenNetty;

/// <summary>
/// Exposes common OpenNetty categories, as defined by the Nitoo and MyHome specifications.
Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty/OpenNettyCategory.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System.Collections.Immutable;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

using System.Collections.Immutable;
using System.Diagnostics;
using System.Text;
using static OpenNetty.OpenNettyConstants;
Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty/OpenNettyCommand.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System.Collections.Immutable;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

using System.Collections.Immutable;
using System.Diagnostics;
using System.Text;
using static OpenNetty.OpenNettyConstants;
Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty/OpenNettyCommands.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
namespace OpenNetty;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

namespace OpenNetty;

/// <summary>
/// Exposes common OpenNetty commands, as defined by the Nitoo and MyHome specifications.
Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty/OpenNettyConfiguration.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System.ComponentModel;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

using System.ComponentModel;
using Microsoft.Extensions.Options;

namespace OpenNetty;
Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty/OpenNettyConnection.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System.IO.Ports;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

using System.IO.Ports;
using System.Net;
using System.Net.Sockets;

Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty/OpenNettyConnectionType.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
namespace OpenNetty;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

namespace OpenNetty;

/// <summary>
/// Represents the type of an OpenNetty connection.
Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty/OpenNettyConstants.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
namespace OpenNetty;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

namespace OpenNetty;

/// <summary>
/// Exposes common OpenNetty constants.
Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty/OpenNettyController.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System.Collections.Immutable;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

using System.Collections.Immutable;
using System.Globalization;
using System.Reactive.Linq;

Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty/OpenNettyCoordinator.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System.Globalization;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

using System.Globalization;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using static OpenNetty.OpenNettyEvents;
Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty/OpenNettyDevice.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System.Collections.Immutable;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

using System.Collections.Immutable;

namespace OpenNetty;

Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty/OpenNettyDeviceDefinition.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System.Collections.Immutable;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

using System.Collections.Immutable;
using System.Reactive;

namespace OpenNetty;
Expand Down
8 changes: 7 additions & 1 deletion src/OpenNetty/OpenNettyDevices.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
using System.Collections.Immutable;
/*
* Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
* See https://github.com/opennetty/opennetty-core for more information concerning
* the license and the contributors participating to this project.
*/

using System.Collections.Immutable;
using System.Reflection;
using System.Xml.Linq;

Expand Down
Loading

0 comments on commit 4270749

Please sign in to comment.