This commit is contained in:
Justin Bertram 2018-03-06 12:12:12 -06:00
commit a1c39cdadd
11 changed files with 79 additions and 40 deletions

2
.gitignore vendored
View File

@ -1,6 +1,8 @@
**/*.iml
**/nb-configuration.xml
**/target
**/bin
**/obj
.idea/
ratReport.txt
**/server.lock

0
examples/common/prettify.css Executable file → Normal file
View File

0
examples/common/prettify.js Executable file → Normal file
View File

View File

View File

@ -14,12 +14,12 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp1.1</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AMQPNetLite.Core" Version="2.0.0-pre" />
<PackageReference Include="AMQPNetLite" Version="2.1.1" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,21 @@
#!/usr/bin/env sh
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
# if you are using a source distribution you will have to stop the broker manually
# Use this as a reference!
./server1/bin/artemis-service stop

View File

@ -0,0 +1,31 @@
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You 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.
-->
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<AssemblyName>HelloWorld</AssemblyName>
<OutputType>Exe</OutputType>
<PackageId>HelloWorld</PackageId>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AMQPNetLite" Version="2.1.1" />
</ItemGroup>
</Project>

0
examples/protocols/amqp/dotnet/HelloWorld/Program.cs Executable file → Normal file
View File

View File

@ -1,36 +0,0 @@
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
{
"version": "1.0.0-*",
"buildOptions": {
"debugType": "portable",
"emitEntryPoint": true
},
"dependencies": {"AMQPNetLite": "1.2.2"},
"frameworks": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.1.0"
}
},
"imports": "dnxcore50"
}
}
}

View File

@ -18,5 +18,5 @@
# if you are using a source distribution you will have to create and start the broker manually
# Use this as a reference!
../../../../bin/artemis create ./server1 --user a --password a --role a --allow-anonymous --force
../../../../../bin/artemis create ./server1 --user a --password a --role a --allow-anonymous --force
./server1/bin/artemis-service start

View File

@ -0,0 +1,21 @@
#!/usr/bin/env sh
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
# if you are using a source distribution you will have to stop the broker manually
# Use this as a reference!
./server1/bin/artemis-service stop