From 733a21c50e6218f9162cae1875e903e687879d3e Mon Sep 17 00:00:00 2001 From: Victor Chang Date: Mon, 18 Jul 2022 13:35:53 -0700 Subject: [PATCH] Update file headers with full APache-2.0 license text Signed-off-by: Victor Chang --- src/AssemblyInfo.cs | 16 ++++++++++++++++ .../API/IMessageBrokerPublisherService.cs | 17 +++++++++++++++-- .../API/IMessageBrokerSubscriberService.cs | 17 +++++++++++++++-- src/Messaging/Common/BlockStorageInfo.cs | 17 +++++++++++++++-- src/Messaging/Common/Credentials.cs | 17 +++++++++++++++-- .../Common/MessageConversionException.cs | 18 ++++++++++++++++-- .../Common/MessageReceivedEventArgs.cs | 17 +++++++++++++++-- .../Common/MessageValidationException.cs | 17 +++++++++++++++-- src/Messaging/Common/Storage.cs | 17 +++++++++++++++-- .../Configuration/ConfigurationException.cs | 19 ++++++++++++++++--- .../MessageBrokerServiceConfiguration.cs | 17 +++++++++++++++-- src/Messaging/Events/EventBase.cs | 17 +++++++++++++++-- src/Messaging/Events/ExportCompleteEvent.cs | 19 ++++++++++++++++--- src/Messaging/Events/ExportRequestEvent.cs | 19 ++++++++++++++++--- src/Messaging/Events/ExportStatus.cs | 18 ++++++++++++++++-- src/Messaging/Events/FailureReason.cs | 18 ++++++++++++++++-- src/Messaging/Events/TaskCallbackEvent.cs | 17 +++++++++++++++-- src/Messaging/Events/TaskDispatchEvent.cs | 17 +++++++++++++++-- src/Messaging/Events/TaskExecutionStatus.cs | 17 +++++++++++++++-- src/Messaging/Events/TaskUpdateEvent.cs | 17 +++++++++++++++-- src/Messaging/Events/WorkflowRequestEvent.cs | 19 ++++++++++++++++--- src/Messaging/IServiceCollectionExtension.cs | 17 +++++++++++++++-- src/Messaging/InternalVisible.cs | 18 +++++++++++++++++- src/Messaging/Messages/JsonMessage.cs | 19 ++++++++++++++++--- src/Messaging/Messages/Message.cs | 19 ++++++++++++++++--- src/Messaging/Messages/MessageBase.cs | 17 +++++++++++++++-- src/Messaging/Monai.Deploy.Messaging.csproj | 15 +++++++++++++-- src/Messaging/SR.cs | 18 ++++++++++++++++-- src/Messaging/ServiceRegistrationBase.cs | 17 +++++++++++++++-- src/Messaging/Tests/EventBaseTest.cs | 17 +++++++++++++++-- .../Tests/ExportCompleteEventTest.cs | 17 +++++++++++++++-- .../IServiceCollectionExtensionsTests.cs | 17 +++++++++++++++-- src/Messaging/Tests/JsonMessageTest.cs | 17 +++++++++++++++-- .../Tests/Monai.Deploy.Messaging.Tests.csproj | 16 ++++++++++++++++ .../Tests/ServiceRegistrationBaseTests.cs | 17 +++++++++++++++-- src/Messaging/Tests/TaskCallbackEventTest.cs | 17 +++++++++++++++-- src/Messaging/Tests/TaskDispatchEventTest.cs | 17 +++++++++++++++-- src/Messaging/Tests/TaskUpdateEventTest.cs | 17 +++++++++++++++-- .../Tests/WorkflowRequestMessageTest.cs | 17 +++++++++++++++-- src/Monai.Deploy.Messaging.sln | 17 ++++++++++++++++- src/Plugins/RabbitMQ/ConfigurationKeys.cs | 19 ++++++++++++++++--- src/Plugins/RabbitMQ/InternalVisible.cs | 18 +++++++++++++++++- src/Plugins/RabbitMQ/Logger.cs | 17 +++++++++++++++-- .../Monai.Deploy.Messaging.RabbitMQ.csproj | 16 ++++++++++++++++ .../RabbitMQ/PublisherServiceRegistration.cs | 17 +++++++++++++++-- src/Plugins/RabbitMQ/README.md | 16 ++++++++++++++++ .../RabbitMQ/RabbitMqConnectionFactory.cs | 17 +++++++++++++++-- .../RabbitMqMessagePublisherService.cs | 19 ++++++++++++++++--- .../RabbitMqMessageSubscriberService.cs | 19 ++++++++++++++++--- .../RabbitMQ/SubscriberServiceRegistration.cs | 17 +++++++++++++++-- ...nai.Deploy.Messaging.RabbitMQ.Tests.csproj | 16 ++++++++++++++++ .../RabbitMqMessagePublisherServiceTest.cs | 17 +++++++++++++++-- .../RabbitMqMessageSubscriberServiceTest.cs | 17 +++++++++++++++-- .../RabbitMQ/Tests/ServiceRegistrationTest.cs | 17 +++++++++++++++-- src/Plugins/package.sh | 15 +++++++++++++-- 55 files changed, 844 insertions(+), 106 deletions(-) diff --git a/src/AssemblyInfo.cs b/src/AssemblyInfo.cs index f6fa0f8..ee99582 100644 --- a/src/AssemblyInfo.cs +++ b/src/AssemblyInfo.cs @@ -1,3 +1,19 @@ +/* + * Copyright 2022 MONAI Consortium + * + * 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 code was generated by GitVersion. diff --git a/src/Messaging/API/IMessageBrokerPublisherService.cs b/src/Messaging/API/IMessageBrokerPublisherService.cs index 54019cf..599394b 100644 --- a/src/Messaging/API/IMessageBrokerPublisherService.cs +++ b/src/Messaging/API/IMessageBrokerPublisherService.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2021-2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2021-2022 MONAI Consortium + * + * 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 Monai.Deploy.Messaging.Messages; diff --git a/src/Messaging/API/IMessageBrokerSubscriberService.cs b/src/Messaging/API/IMessageBrokerSubscriberService.cs index d35b865..058c48c 100644 --- a/src/Messaging/API/IMessageBrokerSubscriberService.cs +++ b/src/Messaging/API/IMessageBrokerSubscriberService.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2021-2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2021-2022 MONAI Consortium + * + * 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 Monai.Deploy.Messaging.Common; using Monai.Deploy.Messaging.Messages; diff --git a/src/Messaging/Common/BlockStorageInfo.cs b/src/Messaging/Common/BlockStorageInfo.cs index af8a9db..4fed0e3 100644 --- a/src/Messaging/Common/BlockStorageInfo.cs +++ b/src/Messaging/Common/BlockStorageInfo.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2021-2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2021-2022 MONAI Consortium + * + * 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 Newtonsoft.Json; diff --git a/src/Messaging/Common/Credentials.cs b/src/Messaging/Common/Credentials.cs index f14c980..de0bdb5 100644 --- a/src/Messaging/Common/Credentials.cs +++ b/src/Messaging/Common/Credentials.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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.ComponentModel.DataAnnotations; using Newtonsoft.Json; diff --git a/src/Messaging/Common/MessageConversionException.cs b/src/Messaging/Common/MessageConversionException.cs index 3f5dac6..16c3b1f 100644 --- a/src/Messaging/Common/MessageConversionException.cs +++ b/src/Messaging/Common/MessageConversionException.cs @@ -1,5 +1,19 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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.Serialization; diff --git a/src/Messaging/Common/MessageReceivedEventArgs.cs b/src/Messaging/Common/MessageReceivedEventArgs.cs index e7c866a..88e4573 100644 --- a/src/Messaging/Common/MessageReceivedEventArgs.cs +++ b/src/Messaging/Common/MessageReceivedEventArgs.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2021-2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2021-2022 MONAI Consortium + * + * 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 Monai.Deploy.Messaging.Messages; diff --git a/src/Messaging/Common/MessageValidationException.cs b/src/Messaging/Common/MessageValidationException.cs index 9be16e2..a6052ce 100644 --- a/src/Messaging/Common/MessageValidationException.cs +++ b/src/Messaging/Common/MessageValidationException.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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.ComponentModel.DataAnnotations; using System.Runtime.Serialization; diff --git a/src/Messaging/Common/Storage.cs b/src/Messaging/Common/Storage.cs index 424f4f3..3d71135 100644 --- a/src/Messaging/Common/Storage.cs +++ b/src/Messaging/Common/Storage.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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.ComponentModel.DataAnnotations; using Newtonsoft.Json; diff --git a/src/Messaging/Configuration/ConfigurationException.cs b/src/Messaging/Configuration/ConfigurationException.cs index 3fc53b6..959eb15 100644 --- a/src/Messaging/Configuration/ConfigurationException.cs +++ b/src/Messaging/Configuration/ConfigurationException.cs @@ -1,6 +1,19 @@ -// SPDX-FileCopyrightText: © 2021-2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 - +/* + * Copyright 2021-2022 MONAI Consortium + * + * 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.Serialization; namespace Monai.Deploy.Messaging.Configuration diff --git a/src/Messaging/Configuration/MessageBrokerServiceConfiguration.cs b/src/Messaging/Configuration/MessageBrokerServiceConfiguration.cs index 34407d1..452bcfa 100644 --- a/src/Messaging/Configuration/MessageBrokerServiceConfiguration.cs +++ b/src/Messaging/Configuration/MessageBrokerServiceConfiguration.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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.Configuration; diff --git a/src/Messaging/Events/EventBase.cs b/src/Messaging/Events/EventBase.cs index a108ba2..f412235 100644 --- a/src/Messaging/Events/EventBase.cs +++ b/src/Messaging/Events/EventBase.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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; using System.ComponentModel.DataAnnotations; diff --git a/src/Messaging/Events/ExportCompleteEvent.cs b/src/Messaging/Events/ExportCompleteEvent.cs index 78d0df2..0f43033 100644 --- a/src/Messaging/Events/ExportCompleteEvent.cs +++ b/src/Messaging/Events/ExportCompleteEvent.cs @@ -1,6 +1,19 @@ -// SPDX-FileCopyrightText: © 2021-2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 - +/* + * Copyright 2021-2022 MONAI Consortium + * + * 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.ComponentModel.DataAnnotations; using Ardalis.GuardClauses; using Newtonsoft.Json; diff --git a/src/Messaging/Events/ExportRequestEvent.cs b/src/Messaging/Events/ExportRequestEvent.cs index f11f04d..92552c0 100644 --- a/src/Messaging/Events/ExportRequestEvent.cs +++ b/src/Messaging/Events/ExportRequestEvent.cs @@ -1,6 +1,19 @@ -// SPDX-FileCopyrightText: © 2021-2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 - +/* + * Copyright 2021-2022 MONAI Consortium + * + * 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.ComponentModel.DataAnnotations; using Newtonsoft.Json; diff --git a/src/Messaging/Events/ExportStatus.cs b/src/Messaging/Events/ExportStatus.cs index 3788574..88b05a1 100644 --- a/src/Messaging/Events/ExportStatus.cs +++ b/src/Messaging/Events/ExportStatus.cs @@ -1,5 +1,19 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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 Monai.Deploy.Messaging.Events { diff --git a/src/Messaging/Events/FailureReason.cs b/src/Messaging/Events/FailureReason.cs index a34605b..5e4c054 100644 --- a/src/Messaging/Events/FailureReason.cs +++ b/src/Messaging/Events/FailureReason.cs @@ -1,5 +1,19 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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 Monai.Deploy.Messaging.Events { diff --git a/src/Messaging/Events/TaskCallbackEvent.cs b/src/Messaging/Events/TaskCallbackEvent.cs index 5e0f3b8..6aab32a 100644 --- a/src/Messaging/Events/TaskCallbackEvent.cs +++ b/src/Messaging/Events/TaskCallbackEvent.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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.ComponentModel.DataAnnotations; using Monai.Deploy.Messaging.Common; diff --git a/src/Messaging/Events/TaskDispatchEvent.cs b/src/Messaging/Events/TaskDispatchEvent.cs index c4cf450..889c573 100644 --- a/src/Messaging/Events/TaskDispatchEvent.cs +++ b/src/Messaging/Events/TaskDispatchEvent.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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.ComponentModel.DataAnnotations; using Monai.Deploy.Messaging.Common; diff --git a/src/Messaging/Events/TaskExecutionStatus.cs b/src/Messaging/Events/TaskExecutionStatus.cs index b002187..5007fd4 100644 --- a/src/Messaging/Events/TaskExecutionStatus.cs +++ b/src/Messaging/Events/TaskExecutionStatus.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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 Monai.Deploy.Messaging.Events { diff --git a/src/Messaging/Events/TaskUpdateEvent.cs b/src/Messaging/Events/TaskUpdateEvent.cs index aeae7cf..7f7942a 100644 --- a/src/Messaging/Events/TaskUpdateEvent.cs +++ b/src/Messaging/Events/TaskUpdateEvent.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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.ComponentModel.DataAnnotations; using Monai.Deploy.Messaging.Common; diff --git a/src/Messaging/Events/WorkflowRequestEvent.cs b/src/Messaging/Events/WorkflowRequestEvent.cs index 94d47a0..924760b 100644 --- a/src/Messaging/Events/WorkflowRequestEvent.cs +++ b/src/Messaging/Events/WorkflowRequestEvent.cs @@ -1,6 +1,19 @@ -// SPDX-FileCopyrightText: © 2021-2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 - +/* + * Copyright 2021-2022 MONAI Consortium + * + * 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.ComponentModel.DataAnnotations; using Monai.Deploy.Messaging.Common; using Newtonsoft.Json; diff --git a/src/Messaging/IServiceCollectionExtension.cs b/src/Messaging/IServiceCollectionExtension.cs index cae473b..9923d4f 100644 --- a/src/Messaging/IServiceCollectionExtension.cs +++ b/src/Messaging/IServiceCollectionExtension.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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.Abstractions; using System.Reflection; diff --git a/src/Messaging/InternalVisible.cs b/src/Messaging/InternalVisible.cs index 7a31434..57d7b5c 100644 --- a/src/Messaging/InternalVisible.cs +++ b/src/Messaging/InternalVisible.cs @@ -1,4 +1,20 @@ -using System.Runtime.CompilerServices; +/* + * Copyright 2022 MONAI Consortium + * + * 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("Monai.Deploy.Messaging.Tests")] [assembly: InternalsVisibleTo("Monai.Deploy.Messaging.RabbitMQ.Tests")] diff --git a/src/Messaging/Messages/JsonMessage.cs b/src/Messaging/Messages/JsonMessage.cs index a84b743..a6a30ac 100644 --- a/src/Messaging/Messages/JsonMessage.cs +++ b/src/Messaging/Messages/JsonMessage.cs @@ -1,6 +1,19 @@ -// SPDX-FileCopyrightText: © 2021-2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 - +/* + * Copyright 2021-2022 MONAI Consortium + * + * 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.Net.Mime; using System.Text; using Ardalis.GuardClauses; diff --git a/src/Messaging/Messages/Message.cs b/src/Messaging/Messages/Message.cs index 8f44750..86d8589 100644 --- a/src/Messaging/Messages/Message.cs +++ b/src/Messaging/Messages/Message.cs @@ -1,6 +1,19 @@ -// SPDX-FileCopyrightText: © 2021-2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 - +/* + * Copyright 2021-2022 MONAI Consortium + * + * 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.Text; using Monai.Deploy.Messaging.Common; using Newtonsoft.Json; diff --git a/src/Messaging/Messages/MessageBase.cs b/src/Messaging/Messages/MessageBase.cs index e206599..9d4dfb6 100644 --- a/src/Messaging/Messages/MessageBase.cs +++ b/src/Messaging/Messages/MessageBase.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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 Ardalis.GuardClauses; diff --git a/src/Messaging/Monai.Deploy.Messaging.csproj b/src/Messaging/Monai.Deploy.Messaging.csproj index ef4b363..0a7d4bd 100644 --- a/src/Messaging/Monai.Deploy.Messaging.csproj +++ b/src/Messaging/Monai.Deploy.Messaging.csproj @@ -1,6 +1,17 @@ diff --git a/src/Messaging/SR.cs b/src/Messaging/SR.cs index 5f51387..84fa01f 100644 --- a/src/Messaging/SR.cs +++ b/src/Messaging/SR.cs @@ -1,5 +1,19 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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 Monai.Deploy.Messaging { diff --git a/src/Messaging/ServiceRegistrationBase.cs b/src/Messaging/ServiceRegistrationBase.cs index 4065431..5a01ee5 100644 --- a/src/Messaging/ServiceRegistrationBase.cs +++ b/src/Messaging/ServiceRegistrationBase.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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 Ardalis.GuardClauses; using Microsoft.Extensions.DependencyInjection; diff --git a/src/Messaging/Tests/EventBaseTest.cs b/src/Messaging/Tests/EventBaseTest.cs index b277316..6465b7a 100644 --- a/src/Messaging/Tests/EventBaseTest.cs +++ b/src/Messaging/Tests/EventBaseTest.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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.ComponentModel.DataAnnotations; diff --git a/src/Messaging/Tests/ExportCompleteEventTest.cs b/src/Messaging/Tests/ExportCompleteEventTest.cs index d56be9c..6f0688b 100644 --- a/src/Messaging/Tests/ExportCompleteEventTest.cs +++ b/src/Messaging/Tests/ExportCompleteEventTest.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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; diff --git a/src/Messaging/Tests/IServiceCollectionExtensionsTests.cs b/src/Messaging/Tests/IServiceCollectionExtensionsTests.cs index 732f35f..bcab205 100644 --- a/src/Messaging/Tests/IServiceCollectionExtensionsTests.cs +++ b/src/Messaging/Tests/IServiceCollectionExtensionsTests.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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.IO; diff --git a/src/Messaging/Tests/JsonMessageTest.cs b/src/Messaging/Tests/JsonMessageTest.cs index 2985501..157cd5e 100644 --- a/src/Messaging/Tests/JsonMessageTest.cs +++ b/src/Messaging/Tests/JsonMessageTest.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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 Monai.Deploy.Messaging.Common; diff --git a/src/Messaging/Tests/Monai.Deploy.Messaging.Tests.csproj b/src/Messaging/Tests/Monai.Deploy.Messaging.Tests.csproj index 90c93b4..7f7d2b7 100644 --- a/src/Messaging/Tests/Monai.Deploy.Messaging.Tests.csproj +++ b/src/Messaging/Tests/Monai.Deploy.Messaging.Tests.csproj @@ -1,3 +1,19 @@ + + diff --git a/src/Messaging/Tests/ServiceRegistrationBaseTests.cs b/src/Messaging/Tests/ServiceRegistrationBaseTests.cs index 169731c..313c00b 100644 --- a/src/Messaging/Tests/ServiceRegistrationBaseTests.cs +++ b/src/Messaging/Tests/ServiceRegistrationBaseTests.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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 Microsoft.Extensions.DependencyInjection; diff --git a/src/Messaging/Tests/TaskCallbackEventTest.cs b/src/Messaging/Tests/TaskCallbackEventTest.cs index 9d1eb11..e2d205c 100644 --- a/src/Messaging/Tests/TaskCallbackEventTest.cs +++ b/src/Messaging/Tests/TaskCallbackEventTest.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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 Monai.Deploy.Messaging.Common; diff --git a/src/Messaging/Tests/TaskDispatchEventTest.cs b/src/Messaging/Tests/TaskDispatchEventTest.cs index ab9573f..743f801 100644 --- a/src/Messaging/Tests/TaskDispatchEventTest.cs +++ b/src/Messaging/Tests/TaskDispatchEventTest.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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; diff --git a/src/Messaging/Tests/TaskUpdateEventTest.cs b/src/Messaging/Tests/TaskUpdateEventTest.cs index 76d3282..073a4fc 100644 --- a/src/Messaging/Tests/TaskUpdateEventTest.cs +++ b/src/Messaging/Tests/TaskUpdateEventTest.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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 Monai.Deploy.Messaging.Common; diff --git a/src/Messaging/Tests/WorkflowRequestMessageTest.cs b/src/Messaging/Tests/WorkflowRequestMessageTest.cs index faff97a..09729b6 100644 --- a/src/Messaging/Tests/WorkflowRequestMessageTest.cs +++ b/src/Messaging/Tests/WorkflowRequestMessageTest.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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; diff --git a/src/Monai.Deploy.Messaging.sln b/src/Monai.Deploy.Messaging.sln index 022c3c4..2df0378 100644 --- a/src/Monai.Deploy.Messaging.sln +++ b/src/Monai.Deploy.Messaging.sln @@ -1,5 +1,20 @@ - Microsoft Visual Studio Solution File, Format Version 12.00 + + # Visual Studio Version 17 VisualStudioVersion = 17.1.32210.238 MinimumVisualStudioVersion = 10.0.40219.1 diff --git a/src/Plugins/RabbitMQ/ConfigurationKeys.cs b/src/Plugins/RabbitMQ/ConfigurationKeys.cs index 9306842..66f6f1e 100644 --- a/src/Plugins/RabbitMQ/ConfigurationKeys.cs +++ b/src/Plugins/RabbitMQ/ConfigurationKeys.cs @@ -1,6 +1,19 @@ -// SPDX-FileCopyrightText: © 2021-2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 - +/* + * Copyright 2021-2022 MONAI Consortium + * + * 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 Monai.Deploy.Messaging.RabbitMQ { internal static class ConfigurationKeys diff --git a/src/Plugins/RabbitMQ/InternalVisible.cs b/src/Plugins/RabbitMQ/InternalVisible.cs index 4c3d09b..0456e61 100644 --- a/src/Plugins/RabbitMQ/InternalVisible.cs +++ b/src/Plugins/RabbitMQ/InternalVisible.cs @@ -1,3 +1,19 @@ -using System.Runtime.CompilerServices; +/* + * Copyright 2022 MONAI Consortium + * + * 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("Monai.Deploy.Messaging.RabbitMQ.Tests")] diff --git a/src/Plugins/RabbitMQ/Logger.cs b/src/Plugins/RabbitMQ/Logger.cs index 7d4b0b9..717134a 100644 --- a/src/Plugins/RabbitMQ/Logger.cs +++ b/src/Plugins/RabbitMQ/Logger.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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 Microsoft.Extensions.Logging; diff --git a/src/Plugins/RabbitMQ/Monai.Deploy.Messaging.RabbitMQ.csproj b/src/Plugins/RabbitMQ/Monai.Deploy.Messaging.RabbitMQ.csproj index 8493e3c..3eb418e 100644 --- a/src/Plugins/RabbitMQ/Monai.Deploy.Messaging.RabbitMQ.csproj +++ b/src/Plugins/RabbitMQ/Monai.Deploy.Messaging.RabbitMQ.csproj @@ -1,3 +1,19 @@ + + diff --git a/src/Plugins/RabbitMQ/PublisherServiceRegistration.cs b/src/Plugins/RabbitMQ/PublisherServiceRegistration.cs index 66528fb..83eac38 100644 --- a/src/Plugins/RabbitMQ/PublisherServiceRegistration.cs +++ b/src/Plugins/RabbitMQ/PublisherServiceRegistration.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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; using Monai.Deploy.Messaging.API; diff --git a/src/Plugins/RabbitMQ/README.md b/src/Plugins/RabbitMQ/README.md index e67db37..f5a9e9d 100644 --- a/src/Plugins/RabbitMQ/README.md +++ b/src/Plugins/RabbitMQ/README.md @@ -1,3 +1,19 @@ + + # RabbitMQ for MONAI Deploy ## Overview diff --git a/src/Plugins/RabbitMQ/RabbitMqConnectionFactory.cs b/src/Plugins/RabbitMQ/RabbitMqConnectionFactory.cs index 4d38de1..760d6a4 100644 --- a/src/Plugins/RabbitMQ/RabbitMqConnectionFactory.cs +++ b/src/Plugins/RabbitMQ/RabbitMqConnectionFactory.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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.Concurrent; diff --git a/src/Plugins/RabbitMQ/RabbitMqMessagePublisherService.cs b/src/Plugins/RabbitMQ/RabbitMqMessagePublisherService.cs index 8c1e686..e615ded 100644 --- a/src/Plugins/RabbitMQ/RabbitMqMessagePublisherService.cs +++ b/src/Plugins/RabbitMQ/RabbitMqMessagePublisherService.cs @@ -1,6 +1,19 @@ -// SPDX-FileCopyrightText: © 2021-2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 - +/* + * Copyright 2021-2022 MONAI Consortium + * + * 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.Globalization; using System.Threading.Tasks; diff --git a/src/Plugins/RabbitMQ/RabbitMqMessageSubscriberService.cs b/src/Plugins/RabbitMQ/RabbitMqMessageSubscriberService.cs index 0b88989..38921d6 100644 --- a/src/Plugins/RabbitMQ/RabbitMqMessageSubscriberService.cs +++ b/src/Plugins/RabbitMQ/RabbitMqMessageSubscriberService.cs @@ -1,6 +1,19 @@ -// SPDX-FileCopyrightText: © 2021-2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 - +/* + * Copyright 2021-2022 MONAI Consortium + * + * 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.Globalization; using System.Threading; diff --git a/src/Plugins/RabbitMQ/SubscriberServiceRegistration.cs b/src/Plugins/RabbitMQ/SubscriberServiceRegistration.cs index 7d2bcbd..b9b36f4 100644 --- a/src/Plugins/RabbitMQ/SubscriberServiceRegistration.cs +++ b/src/Plugins/RabbitMQ/SubscriberServiceRegistration.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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; using Monai.Deploy.Messaging.API; diff --git a/src/Plugins/RabbitMQ/Tests/Monai.Deploy.Messaging.RabbitMQ.Tests.csproj b/src/Plugins/RabbitMQ/Tests/Monai.Deploy.Messaging.RabbitMQ.Tests.csproj index 5d441c1..8325767 100644 --- a/src/Plugins/RabbitMQ/Tests/Monai.Deploy.Messaging.RabbitMQ.Tests.csproj +++ b/src/Plugins/RabbitMQ/Tests/Monai.Deploy.Messaging.RabbitMQ.Tests.csproj @@ -1,3 +1,19 @@ + + diff --git a/src/Plugins/RabbitMQ/Tests/RabbitMqMessagePublisherServiceTest.cs b/src/Plugins/RabbitMQ/Tests/RabbitMqMessagePublisherServiceTest.cs index e6fb591..44bb405 100644 --- a/src/Plugins/RabbitMQ/Tests/RabbitMqMessagePublisherServiceTest.cs +++ b/src/Plugins/RabbitMQ/Tests/RabbitMqMessagePublisherServiceTest.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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.Logging; using Microsoft.Extensions.Options; diff --git a/src/Plugins/RabbitMQ/Tests/RabbitMqMessageSubscriberServiceTest.cs b/src/Plugins/RabbitMQ/Tests/RabbitMqMessageSubscriberServiceTest.cs index 01da9a6..eded164 100644 --- a/src/Plugins/RabbitMQ/Tests/RabbitMqMessageSubscriberServiceTest.cs +++ b/src/Plugins/RabbitMQ/Tests/RabbitMqMessageSubscriberServiceTest.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: © 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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.Globalization; using System.Text; diff --git a/src/Plugins/RabbitMQ/Tests/ServiceRegistrationTest.cs b/src/Plugins/RabbitMQ/Tests/ServiceRegistrationTest.cs index 3701699..0a26410 100644 --- a/src/Plugins/RabbitMQ/Tests/ServiceRegistrationTest.cs +++ b/src/Plugins/RabbitMQ/Tests/ServiceRegistrationTest.cs @@ -1,5 +1,18 @@ -// SPDX-FileCopyrightText: � 2022 MONAI Consortium -// SPDX-License-Identifier: Apache License 2.0 +/* + * Copyright 2022 MONAI Consortium + * + * 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.Abstractions.TestingHelpers; using System.Reflection; diff --git a/src/Plugins/package.sh b/src/Plugins/package.sh index 2d05a95..15be372 100755 --- a/src/Plugins/package.sh +++ b/src/Plugins/package.sh @@ -1,7 +1,18 @@ #!/bin/bash +# Copyright 2022 MONAI Consortium +# +# 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. -# SPDX-FileCopyrightText: © 2022 MONAI Consortium -# SPDX-License-Identifier: Apache License 2.0 export PACKAGEDIR="${PWD}/release"