almukhammetov_bulat_lab_4
This commit is contained in:
parent
a346187851
commit
f7b9e00012
49
almukhammetov_bulat_lab_4/README.md
Normal file
49
almukhammetov_bulat_lab_4/README.md
Normal file
@ -0,0 +1,49 @@
|
||||
Альмухамметов ПИбд-42
|
||||
|
||||
В данной лабораторной работе были разработаны три приложения использующие RabbitMQ, выводящие сообщения о приеме/отправки сообщения в консоль на .net:
|
||||
|
||||
Publisher - отправляет время на момент отправки сообщения в качестве сообщения:
|
||||
![Alt text](image-1.png)
|
||||
|
||||
Consumer1 - имеет задержку 3 секунды перед приемом следующего сообщения:
|
||||
|
||||
![Alt text](image-2.png)
|
||||
|
||||
Consumer2 - не имеет задержки перед приемом следующего сообщения:
|
||||
|
||||
![Alt text](image-3.png)
|
||||
|
||||
Работа приложений:
|
||||
|
||||
![Alt text](image.png)
|
||||
|
||||
Очереди при работе тольео одного экземпляра Consumer1:
|
||||
|
||||
![Alt text](image-4.png)
|
||||
|
||||
Очереди при работе двух экземпляров Consumer1:
|
||||
|
||||
![Alt text](image-10.png)
|
||||
|
||||
Каналы при работе тольео одного экземпляра Consumer1:
|
||||
|
||||
![Alt text](image-5.png)
|
||||
|
||||
Каналы при работе двух экземпляров Consumer1:
|
||||
|
||||
![Alt text](image-8.png)
|
||||
|
||||
Соединения при работе только одного экземпляра Consumer1:
|
||||
|
||||
![Alt text](image-7.png)
|
||||
|
||||
Соединения при работе двух экземпляров Consumer1:
|
||||
|
||||
![Alt text](image-9.png)
|
||||
|
||||
Очереди при 1 и двух:
|
||||
![Alt text](image-11.png)
|
||||
|
||||
![Alt text](image-12.png)
|
||||
|
||||
Выводы: При двух запущенных экземплярах Consumer1 было полученно больше сообщений за то же время что может положительно повлиять на производительность системы при сложной обработку сообщений занимающей n-ое количество времени.
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
almukhammetov_bulat_lab_4/RabbitMQ/.vs/RabbitMQ/v17/.suo
Normal file
BIN
almukhammetov_bulat_lab_4/RabbitMQ/.vs/RabbitMQ/v17/.suo
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
37
almukhammetov_bulat_lab_4/RabbitMQ/RabbitMQ.sln
Normal file
37
almukhammetov_bulat_lab_4/RabbitMQ/RabbitMQ.sln
Normal file
@ -0,0 +1,37 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.8.34330.188
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RabbitMQPublisher", "RabbitMQ\RabbitMQPublisher.csproj", "{F6E1A4BF-7B1E-41A7-8525-3A33DA639E75}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RabbitMQConsumer1", "RabbitMQConsumer1\RabbitMQConsumer1.csproj", "{7C7025AC-E341-401A-B965-9D8703F6E081}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RabbitMQConsumer2", "RabbitMQConsumer2\RabbitMQConsumer2.csproj", "{E6361B19-62FB-4E06-BD22-1F71A18C40A2}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{F6E1A4BF-7B1E-41A7-8525-3A33DA639E75}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{F6E1A4BF-7B1E-41A7-8525-3A33DA639E75}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{F6E1A4BF-7B1E-41A7-8525-3A33DA639E75}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F6E1A4BF-7B1E-41A7-8525-3A33DA639E75}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{7C7025AC-E341-401A-B965-9D8703F6E081}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{7C7025AC-E341-401A-B965-9D8703F6E081}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{7C7025AC-E341-401A-B965-9D8703F6E081}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{7C7025AC-E341-401A-B965-9D8703F6E081}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{E6361B19-62FB-4E06-BD22-1F71A18C40A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{E6361B19-62FB-4E06-BD22-1F71A18C40A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{E6361B19-62FB-4E06-BD22-1F71A18C40A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{E6361B19-62FB-4E06-BD22-1F71A18C40A2}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {D3BE37AF-6880-477A-8E90-E4903138D8C1}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
28
almukhammetov_bulat_lab_4/RabbitMQ/RabbitMQ/Program.cs
Normal file
28
almukhammetov_bulat_lab_4/RabbitMQ/RabbitMQ/Program.cs
Normal file
@ -0,0 +1,28 @@
|
||||
using RabbitMQ.Client;
|
||||
using System.Text;
|
||||
|
||||
var factory = new ConnectionFactory() { HostName = "localhost" };
|
||||
using (var connection = factory.CreateConnection())
|
||||
using (var channel = connection.CreateModel())
|
||||
{
|
||||
channel.ExchangeDeclare(exchange: "logs", type: ExchangeType.Fanout);
|
||||
|
||||
while (true)
|
||||
{
|
||||
string message = GetMessage();
|
||||
var body = Encoding.UTF8.GetBytes(message);
|
||||
|
||||
channel.BasicPublish(exchange: "logs",
|
||||
routingKey: "",
|
||||
basicProperties: null,
|
||||
body: body);
|
||||
|
||||
Console.WriteLine(" [x] Отпралено {0}", message);
|
||||
Thread.Sleep(1000); // Ожидание 1 секунду
|
||||
}
|
||||
}
|
||||
|
||||
static string GetMessage()
|
||||
{
|
||||
return $"Log: {DateTime.Now}";
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="RabbitMQ.Client" Version="6.8.1" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
Binary file not shown.
@ -0,0 +1,61 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v8.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v8.0": {
|
||||
"RabbitMQPublisher/1.0.0": {
|
||||
"dependencies": {
|
||||
"RabbitMQ.Client": "6.8.1"
|
||||
},
|
||||
"runtime": {
|
||||
"RabbitMQPublisher.dll": {}
|
||||
}
|
||||
},
|
||||
"RabbitMQ.Client/6.8.1": {
|
||||
"dependencies": {
|
||||
"System.Memory": "4.5.5",
|
||||
"System.Threading.Channels": "7.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/netstandard2.0/RabbitMQ.Client.dll": {
|
||||
"assemblyVersion": "6.0.0.0",
|
||||
"fileVersion": "6.8.1.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Memory/4.5.5": {},
|
||||
"System.Threading.Channels/7.0.0": {}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"RabbitMQPublisher/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"RabbitMQ.Client/6.8.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-jNsmGgmCNw2S/NzskeN2ijtGywtH4Sk/G6jWUTD5sY9SrC27Xz6BsLIiB8hdsfjeyWCa4j4GvCIGkpE8wrjU1Q==",
|
||||
"path": "rabbitmq.client/6.8.1",
|
||||
"hashPath": "rabbitmq.client.6.8.1.nupkg.sha512"
|
||||
},
|
||||
"System.Memory/4.5.5": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw==",
|
||||
"path": "system.memory/4.5.5",
|
||||
"hashPath": "system.memory.4.5.5.nupkg.sha512"
|
||||
},
|
||||
"System.Threading.Channels/7.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-qmeeYNROMsONF6ndEZcIQ+VxR4Q/TX/7uIVLJqtwIWL7dDWeh0l1UIqgo4wYyjG//5lUNhwkLDSFl+pAWO6oiA==",
|
||||
"path": "system.threading.channels/7.0.0",
|
||||
"hashPath": "system.threading.channels.7.0.0.nupkg.sha512"
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,12 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net8.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "8.0.0"
|
||||
},
|
||||
"configProperties": {
|
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
|
@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан программой.
|
||||
// Исполняемая версия:4.0.30319.42000
|
||||
//
|
||||
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
|
||||
// повторной генерации кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("RabbitMQ")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("RabbitMQ")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("RabbitMQ")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Создано классом WriteCodeFragment MSBuild.
|
||||
|
@ -0,0 +1 @@
|
||||
fc298164bfd84565049b22b9ea36343cf7023f63455957ee00f63d9a7100c143
|
@ -0,0 +1,13 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net8.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = RabbitMQ
|
||||
build_property.ProjectDir = C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQ\
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
@ -0,0 +1,8 @@
|
||||
// <auto-generated/>
|
||||
global using global::System;
|
||||
global using global::System.Collections.Generic;
|
||||
global using global::System.IO;
|
||||
global using global::System.Linq;
|
||||
global using global::System.Net.Http;
|
||||
global using global::System.Threading;
|
||||
global using global::System.Threading.Tasks;
|
Binary file not shown.
@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан программой.
|
||||
// Исполняемая версия:4.0.30319.42000
|
||||
//
|
||||
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
|
||||
// повторной генерации кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("RabbitMQPublisher")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("RabbitMQPublisher")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("RabbitMQPublisher")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Создано классом WriteCodeFragment MSBuild.
|
||||
|
@ -0,0 +1 @@
|
||||
fe0010d738ee21e7ec26f57162a547c1f39fe895cc5104f81f533d4dcb505115
|
@ -0,0 +1,13 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net8.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = RabbitMQPublisher
|
||||
build_property.ProjectDir = D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQ\
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
@ -0,0 +1,8 @@
|
||||
// <auto-generated/>
|
||||
global using global::System;
|
||||
global using global::System.Collections.Generic;
|
||||
global using global::System.IO;
|
||||
global using global::System.Linq;
|
||||
global using global::System.Net.Http;
|
||||
global using global::System.Threading;
|
||||
global using global::System.Threading.Tasks;
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
||||
261dd5cb28aa10fd0e7e86c468f7d34c8c71559d57b841d3e3924293db7f527a
|
@ -0,0 +1,34 @@
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQ\bin\Debug\net8.0\RabbitMQPublisher.exe
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQ\bin\Debug\net8.0\RabbitMQPublisher.deps.json
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQ\bin\Debug\net8.0\RabbitMQPublisher.runtimeconfig.json
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQ\bin\Debug\net8.0\RabbitMQPublisher.dll
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQ\bin\Debug\net8.0\RabbitMQPublisher.pdb
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQ\bin\Debug\net8.0\RabbitMQ.Client.dll
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQ\obj\Debug\net8.0\RabbitMQPublisher.csproj.AssemblyReference.cache
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQ\obj\Debug\net8.0\RabbitMQPublisher.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQ\obj\Debug\net8.0\RabbitMQPublisher.AssemblyInfoInputs.cache
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQ\obj\Debug\net8.0\RabbitMQPublisher.AssemblyInfo.cs
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQ\obj\Debug\net8.0\RabbitMQPublisher.csproj.CoreCompileInputs.cache
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQ\obj\Debug\net8.0\RabbitMQPublisher.csproj.CopyComplete
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQ\obj\Debug\net8.0\RabbitMQPublisher.dll
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQ\obj\Debug\net8.0\refint\RabbitMQPublisher.dll
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQ\obj\Debug\net8.0\RabbitMQPublisher.pdb
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQ\obj\Debug\net8.0\RabbitMQPublisher.genruntimeconfig.cache
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQ\obj\Debug\net8.0\ref\RabbitMQPublisher.dll
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQ\bin\Debug\net8.0\RabbitMQPublisher.exe
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQ\bin\Debug\net8.0\RabbitMQPublisher.deps.json
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQ\bin\Debug\net8.0\RabbitMQPublisher.runtimeconfig.json
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQ\bin\Debug\net8.0\RabbitMQPublisher.dll
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQ\bin\Debug\net8.0\RabbitMQPublisher.pdb
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQ\bin\Debug\net8.0\RabbitMQ.Client.dll
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQ\obj\Debug\net8.0\RabbitMQPublisher.csproj.AssemblyReference.cache
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQ\obj\Debug\net8.0\RabbitMQPublisher.GeneratedMSBuildEditorConfig.editorconfig
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQ\obj\Debug\net8.0\RabbitMQPublisher.AssemblyInfoInputs.cache
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQ\obj\Debug\net8.0\RabbitMQPublisher.AssemblyInfo.cs
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQ\obj\Debug\net8.0\RabbitMQPublisher.csproj.CoreCompileInputs.cache
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQ\obj\Debug\net8.0\RabbitMQPublisher.csproj.CopyComplete
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQ\obj\Debug\net8.0\RabbitMQPublisher.dll
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQ\obj\Debug\net8.0\refint\RabbitMQPublisher.dll
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQ\obj\Debug\net8.0\RabbitMQPublisher.pdb
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQ\obj\Debug\net8.0\RabbitMQPublisher.genruntimeconfig.cache
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQ\obj\Debug\net8.0\ref\RabbitMQPublisher.dll
|
Binary file not shown.
@ -0,0 +1 @@
|
||||
90c240aa53d73fb6b6708402ea2fab9db6bf368ceef8d91533bfacdcd2b68d52
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,63 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"C:\\Users\\73bul\\source\\repos\\RabbitMQPublisher\\RabbitMQ\\RabbitMQ.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"C:\\Users\\73bul\\source\\repos\\RabbitMQPublisher\\RabbitMQ\\RabbitMQ.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\73bul\\source\\repos\\RabbitMQPublisher\\RabbitMQ\\RabbitMQ.csproj",
|
||||
"projectName": "RabbitMQ",
|
||||
"projectPath": "C:\\Users\\73bul\\source\\repos\\RabbitMQPublisher\\RabbitMQ\\RabbitMQ.csproj",
|
||||
"packagesPath": "C:\\Users\\73bul\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\73bul\\source\\repos\\RabbitMQPublisher\\RabbitMQ\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\73bul\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net8.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.100/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\73bul\.nuget\packages\</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.8.0</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="C:\Users\73bul\.nuget\packages\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
@ -0,0 +1,69 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_4\\RabbitMQ\\RabbitMQ\\RabbitMQPublisher.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_4\\RabbitMQ\\RabbitMQ\\RabbitMQPublisher.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_4\\RabbitMQ\\RabbitMQ\\RabbitMQPublisher.csproj",
|
||||
"projectName": "RabbitMQPublisher",
|
||||
"projectPath": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_4\\RabbitMQ\\RabbitMQ\\RabbitMQPublisher.csproj",
|
||||
"packagesPath": "C:\\Users\\73bul\\.nuget\\packages\\",
|
||||
"outputPath": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_4\\RabbitMQ\\RabbitMQ\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\73bul\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net8.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"dependencies": {
|
||||
"RabbitMQ.Client": {
|
||||
"target": "Package",
|
||||
"version": "[6.8.1, )"
|
||||
}
|
||||
},
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.100/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\73bul\.nuget\packages\</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.8.0</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="C:\Users\73bul\.nuget\packages\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
@ -0,0 +1,189 @@
|
||||
{
|
||||
"version": 3,
|
||||
"targets": {
|
||||
"net8.0": {
|
||||
"RabbitMQ.Client/6.8.1": {
|
||||
"type": "package",
|
||||
"dependencies": {
|
||||
"System.Memory": "4.5.5",
|
||||
"System.Threading.Channels": "7.0.0"
|
||||
},
|
||||
"compile": {
|
||||
"lib/netstandard2.0/RabbitMQ.Client.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/netstandard2.0/RabbitMQ.Client.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Memory/4.5.5": {
|
||||
"type": "package",
|
||||
"compile": {
|
||||
"ref/netcoreapp2.1/_._": {}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/netcoreapp2.1/_._": {}
|
||||
}
|
||||
},
|
||||
"System.Threading.Channels/7.0.0": {
|
||||
"type": "package",
|
||||
"compile": {
|
||||
"lib/net7.0/System.Threading.Channels.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net7.0/System.Threading.Channels.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
},
|
||||
"build": {
|
||||
"buildTransitive/net6.0/_._": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"RabbitMQ.Client/6.8.1": {
|
||||
"sha512": "jNsmGgmCNw2S/NzskeN2ijtGywtH4Sk/G6jWUTD5sY9SrC27Xz6BsLIiB8hdsfjeyWCa4j4GvCIGkpE8wrjU1Q==",
|
||||
"type": "package",
|
||||
"path": "rabbitmq.client/6.8.1",
|
||||
"files": [
|
||||
".nupkg.metadata",
|
||||
".signature.p7s",
|
||||
"README.md",
|
||||
"icon.png",
|
||||
"lib/net462/RabbitMQ.Client.dll",
|
||||
"lib/net462/RabbitMQ.Client.xml",
|
||||
"lib/netstandard2.0/RabbitMQ.Client.dll",
|
||||
"lib/netstandard2.0/RabbitMQ.Client.xml",
|
||||
"rabbitmq.client.6.8.1.nupkg.sha512",
|
||||
"rabbitmq.client.nuspec"
|
||||
]
|
||||
},
|
||||
"System.Memory/4.5.5": {
|
||||
"sha512": "XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw==",
|
||||
"type": "package",
|
||||
"path": "system.memory/4.5.5",
|
||||
"files": [
|
||||
".nupkg.metadata",
|
||||
".signature.p7s",
|
||||
"LICENSE.TXT",
|
||||
"THIRD-PARTY-NOTICES.TXT",
|
||||
"lib/net461/System.Memory.dll",
|
||||
"lib/net461/System.Memory.xml",
|
||||
"lib/netcoreapp2.1/_._",
|
||||
"lib/netstandard1.1/System.Memory.dll",
|
||||
"lib/netstandard1.1/System.Memory.xml",
|
||||
"lib/netstandard2.0/System.Memory.dll",
|
||||
"lib/netstandard2.0/System.Memory.xml",
|
||||
"ref/netcoreapp2.1/_._",
|
||||
"system.memory.4.5.5.nupkg.sha512",
|
||||
"system.memory.nuspec",
|
||||
"useSharedDesignerContext.txt",
|
||||
"version.txt"
|
||||
]
|
||||
},
|
||||
"System.Threading.Channels/7.0.0": {
|
||||
"sha512": "qmeeYNROMsONF6ndEZcIQ+VxR4Q/TX/7uIVLJqtwIWL7dDWeh0l1UIqgo4wYyjG//5lUNhwkLDSFl+pAWO6oiA==",
|
||||
"type": "package",
|
||||
"path": "system.threading.channels/7.0.0",
|
||||
"files": [
|
||||
".nupkg.metadata",
|
||||
".signature.p7s",
|
||||
"Icon.png",
|
||||
"LICENSE.TXT",
|
||||
"THIRD-PARTY-NOTICES.TXT",
|
||||
"buildTransitive/net461/System.Threading.Channels.targets",
|
||||
"buildTransitive/net462/_._",
|
||||
"buildTransitive/net6.0/_._",
|
||||
"buildTransitive/netcoreapp2.0/System.Threading.Channels.targets",
|
||||
"lib/net462/System.Threading.Channels.dll",
|
||||
"lib/net462/System.Threading.Channels.xml",
|
||||
"lib/net6.0/System.Threading.Channels.dll",
|
||||
"lib/net6.0/System.Threading.Channels.xml",
|
||||
"lib/net7.0/System.Threading.Channels.dll",
|
||||
"lib/net7.0/System.Threading.Channels.xml",
|
||||
"lib/netstandard2.0/System.Threading.Channels.dll",
|
||||
"lib/netstandard2.0/System.Threading.Channels.xml",
|
||||
"lib/netstandard2.1/System.Threading.Channels.dll",
|
||||
"lib/netstandard2.1/System.Threading.Channels.xml",
|
||||
"system.threading.channels.7.0.0.nupkg.sha512",
|
||||
"system.threading.channels.nuspec",
|
||||
"useSharedDesignerContext.txt"
|
||||
]
|
||||
}
|
||||
},
|
||||
"projectFileDependencyGroups": {
|
||||
"net8.0": [
|
||||
"RabbitMQ.Client >= 6.8.1"
|
||||
]
|
||||
},
|
||||
"packageFolders": {
|
||||
"C:\\Users\\73bul\\.nuget\\packages\\": {}
|
||||
},
|
||||
"project": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_4\\RabbitMQ\\RabbitMQ\\RabbitMQPublisher.csproj",
|
||||
"projectName": "RabbitMQPublisher",
|
||||
"projectPath": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_4\\RabbitMQ\\RabbitMQ\\RabbitMQPublisher.csproj",
|
||||
"packagesPath": "C:\\Users\\73bul\\.nuget\\packages\\",
|
||||
"outputPath": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_4\\RabbitMQ\\RabbitMQ\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\73bul\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net8.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"dependencies": {
|
||||
"RabbitMQ.Client": {
|
||||
"target": "Package",
|
||||
"version": "[6.8.1, )"
|
||||
}
|
||||
},
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.100/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "MDiPi1TDkuHFTfMV54evLtWOAuudlOhPk/f8KGpgiFtRAkxBVDyQ6kIuP4NdixDu9fuJtc8AqslV3o7zkPFkwA==",
|
||||
"success": true,
|
||||
"projectFilePath": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_4\\RabbitMQ\\RabbitMQ\\RabbitMQPublisher.csproj",
|
||||
"expectedPackageFiles": [
|
||||
"C:\\Users\\73bul\\.nuget\\packages\\rabbitmq.client\\6.8.1\\rabbitmq.client.6.8.1.nupkg.sha512",
|
||||
"C:\\Users\\73bul\\.nuget\\packages\\system.memory\\4.5.5\\system.memory.4.5.5.nupkg.sha512",
|
||||
"C:\\Users\\73bul\\.nuget\\packages\\system.threading.channels\\7.0.0\\system.threading.channels.7.0.0.nupkg.sha512"
|
||||
],
|
||||
"logs": []
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
using RabbitMQ.Client;
|
||||
using RabbitMQ.Client.Events;
|
||||
using System.Text;
|
||||
|
||||
var factory = new ConnectionFactory() { HostName = "localhost" };
|
||||
using (var connection = factory.CreateConnection())
|
||||
using (var channel = connection.CreateModel())
|
||||
{
|
||||
channel.ExchangeDeclare(exchange: "logs", type: ExchangeType.Fanout);
|
||||
|
||||
// Определение имени очереди
|
||||
var queueName = "myQueue";
|
||||
channel.QueueDeclare(queue: queueName, durable: false, exclusive: false, autoDelete: false, arguments: null);
|
||||
|
||||
channel.QueueBind(queue: queueName, exchange: "logs", routingKey: "");
|
||||
|
||||
var consumer = new EventingBasicConsumer(channel);
|
||||
consumer.Received += (model, ea) =>
|
||||
{
|
||||
var body = ea.Body.ToArray();
|
||||
var message = Encoding.UTF8.GetString(body);
|
||||
Console.WriteLine(" [x] Доставлено {0}", message);
|
||||
|
||||
// Имитация обработки сообщения
|
||||
Thread.Sleep(3000); // Задержка 2-3 секунды
|
||||
};
|
||||
|
||||
channel.BasicConsume(queue: queueName, autoAck: true, consumer: consumer);
|
||||
|
||||
Console.WriteLine(" Нажмите [enter] для выхода.");
|
||||
Console.ReadLine();
|
||||
}
|
||||
|
@ -0,0 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="RabbitMQ.Client" Version="6.8.1" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
Binary file not shown.
@ -0,0 +1,61 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v8.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v8.0": {
|
||||
"RabbitMQConsumer1/1.0.0": {
|
||||
"dependencies": {
|
||||
"RabbitMQ.Client": "6.8.1"
|
||||
},
|
||||
"runtime": {
|
||||
"RabbitMQConsumer1.dll": {}
|
||||
}
|
||||
},
|
||||
"RabbitMQ.Client/6.8.1": {
|
||||
"dependencies": {
|
||||
"System.Memory": "4.5.5",
|
||||
"System.Threading.Channels": "7.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/netstandard2.0/RabbitMQ.Client.dll": {
|
||||
"assemblyVersion": "6.0.0.0",
|
||||
"fileVersion": "6.8.1.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Memory/4.5.5": {},
|
||||
"System.Threading.Channels/7.0.0": {}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"RabbitMQConsumer1/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"RabbitMQ.Client/6.8.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-jNsmGgmCNw2S/NzskeN2ijtGywtH4Sk/G6jWUTD5sY9SrC27Xz6BsLIiB8hdsfjeyWCa4j4GvCIGkpE8wrjU1Q==",
|
||||
"path": "rabbitmq.client/6.8.1",
|
||||
"hashPath": "rabbitmq.client.6.8.1.nupkg.sha512"
|
||||
},
|
||||
"System.Memory/4.5.5": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw==",
|
||||
"path": "system.memory/4.5.5",
|
||||
"hashPath": "system.memory.4.5.5.nupkg.sha512"
|
||||
},
|
||||
"System.Threading.Channels/7.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-qmeeYNROMsONF6ndEZcIQ+VxR4Q/TX/7uIVLJqtwIWL7dDWeh0l1UIqgo4wYyjG//5lUNhwkLDSFl+pAWO6oiA==",
|
||||
"path": "system.threading.channels/7.0.0",
|
||||
"hashPath": "system.threading.channels.7.0.0.nupkg.sha512"
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,12 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net8.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "8.0.0"
|
||||
},
|
||||
"configProperties": {
|
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
|
@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан программой.
|
||||
// Исполняемая версия:4.0.30319.42000
|
||||
//
|
||||
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
|
||||
// повторной генерации кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("RabbitMQConsumer1")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+a346187851ddda07b6b4d0de75645f9c8d61bee4")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("RabbitMQConsumer1")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("RabbitMQConsumer1")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Создано классом WriteCodeFragment MSBuild.
|
||||
|
@ -0,0 +1 @@
|
||||
a4dac1f0930cb0fbeab0f6b5dd670d322c570b9be44bf3cd8bc73a4cee94e33f
|
@ -0,0 +1,13 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net8.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = RabbitMQConsumer1
|
||||
build_property.ProjectDir = D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer1\
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
@ -0,0 +1,8 @@
|
||||
// <auto-generated/>
|
||||
global using global::System;
|
||||
global using global::System.Collections.Generic;
|
||||
global using global::System.IO;
|
||||
global using global::System.Linq;
|
||||
global using global::System.Net.Http;
|
||||
global using global::System.Threading;
|
||||
global using global::System.Threading.Tasks;
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
||||
8973b757669d7897759658e259bb61ba1b0dc228d0d4653fa5d411f825ccf625
|
@ -0,0 +1,34 @@
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer1\bin\Debug\net8.0\RabbitMQConsumer1.exe
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer1\bin\Debug\net8.0\RabbitMQConsumer1.deps.json
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer1\bin\Debug\net8.0\RabbitMQConsumer1.runtimeconfig.json
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer1\bin\Debug\net8.0\RabbitMQConsumer1.dll
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer1\bin\Debug\net8.0\RabbitMQConsumer1.pdb
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer1\bin\Debug\net8.0\RabbitMQ.Client.dll
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer1\obj\Debug\net8.0\RabbitMQConsumer1.csproj.AssemblyReference.cache
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer1\obj\Debug\net8.0\RabbitMQConsumer1.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer1\obj\Debug\net8.0\RabbitMQConsumer1.AssemblyInfoInputs.cache
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer1\obj\Debug\net8.0\RabbitMQConsumer1.AssemblyInfo.cs
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer1\obj\Debug\net8.0\RabbitMQConsumer1.csproj.CoreCompileInputs.cache
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer1\obj\Debug\net8.0\RabbitMQConsumer1.csproj.CopyComplete
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer1\obj\Debug\net8.0\RabbitMQConsumer1.dll
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer1\obj\Debug\net8.0\refint\RabbitMQConsumer1.dll
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer1\obj\Debug\net8.0\RabbitMQConsumer1.pdb
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer1\obj\Debug\net8.0\RabbitMQConsumer1.genruntimeconfig.cache
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer1\obj\Debug\net8.0\ref\RabbitMQConsumer1.dll
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer1\bin\Debug\net8.0\RabbitMQConsumer1.exe
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer1\bin\Debug\net8.0\RabbitMQConsumer1.deps.json
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer1\bin\Debug\net8.0\RabbitMQConsumer1.runtimeconfig.json
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer1\bin\Debug\net8.0\RabbitMQConsumer1.dll
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer1\bin\Debug\net8.0\RabbitMQConsumer1.pdb
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer1\bin\Debug\net8.0\RabbitMQ.Client.dll
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer1\obj\Debug\net8.0\RabbitMQConsumer1.csproj.AssemblyReference.cache
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer1\obj\Debug\net8.0\RabbitMQConsumer1.GeneratedMSBuildEditorConfig.editorconfig
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer1\obj\Debug\net8.0\RabbitMQConsumer1.AssemblyInfoInputs.cache
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer1\obj\Debug\net8.0\RabbitMQConsumer1.AssemblyInfo.cs
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer1\obj\Debug\net8.0\RabbitMQConsumer1.csproj.CoreCompileInputs.cache
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer1\obj\Debug\net8.0\RabbitMQConsumer1.csproj.CopyComplete
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer1\obj\Debug\net8.0\RabbitMQConsumer1.dll
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer1\obj\Debug\net8.0\refint\RabbitMQConsumer1.dll
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer1\obj\Debug\net8.0\RabbitMQConsumer1.pdb
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer1\obj\Debug\net8.0\RabbitMQConsumer1.genruntimeconfig.cache
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer1\obj\Debug\net8.0\ref\RabbitMQConsumer1.dll
|
Binary file not shown.
@ -0,0 +1 @@
|
||||
22ecea1e9a2c6601ee552fffd9f24f61dc8a341ba8edec57c5560a59cb0588c4
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,69 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_4\\RabbitMQ\\RabbitMQConsumer1\\RabbitMQConsumer1.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_4\\RabbitMQ\\RabbitMQConsumer1\\RabbitMQConsumer1.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_4\\RabbitMQ\\RabbitMQConsumer1\\RabbitMQConsumer1.csproj",
|
||||
"projectName": "RabbitMQConsumer1",
|
||||
"projectPath": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_4\\RabbitMQ\\RabbitMQConsumer1\\RabbitMQConsumer1.csproj",
|
||||
"packagesPath": "C:\\Users\\73bul\\.nuget\\packages\\",
|
||||
"outputPath": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_4\\RabbitMQ\\RabbitMQConsumer1\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\73bul\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net8.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"dependencies": {
|
||||
"RabbitMQ.Client": {
|
||||
"target": "Package",
|
||||
"version": "[6.8.1, )"
|
||||
}
|
||||
},
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.100/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\73bul\.nuget\packages\</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.8.0</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="C:\Users\73bul\.nuget\packages\" />
|
||||
</ItemGroup>
|
||||
</Project>
|
@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
@ -0,0 +1,189 @@
|
||||
{
|
||||
"version": 3,
|
||||
"targets": {
|
||||
"net8.0": {
|
||||
"RabbitMQ.Client/6.8.1": {
|
||||
"type": "package",
|
||||
"dependencies": {
|
||||
"System.Memory": "4.5.5",
|
||||
"System.Threading.Channels": "7.0.0"
|
||||
},
|
||||
"compile": {
|
||||
"lib/netstandard2.0/RabbitMQ.Client.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/netstandard2.0/RabbitMQ.Client.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Memory/4.5.5": {
|
||||
"type": "package",
|
||||
"compile": {
|
||||
"ref/netcoreapp2.1/_._": {}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/netcoreapp2.1/_._": {}
|
||||
}
|
||||
},
|
||||
"System.Threading.Channels/7.0.0": {
|
||||
"type": "package",
|
||||
"compile": {
|
||||
"lib/net7.0/System.Threading.Channels.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net7.0/System.Threading.Channels.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
},
|
||||
"build": {
|
||||
"buildTransitive/net6.0/_._": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"RabbitMQ.Client/6.8.1": {
|
||||
"sha512": "jNsmGgmCNw2S/NzskeN2ijtGywtH4Sk/G6jWUTD5sY9SrC27Xz6BsLIiB8hdsfjeyWCa4j4GvCIGkpE8wrjU1Q==",
|
||||
"type": "package",
|
||||
"path": "rabbitmq.client/6.8.1",
|
||||
"files": [
|
||||
".nupkg.metadata",
|
||||
".signature.p7s",
|
||||
"README.md",
|
||||
"icon.png",
|
||||
"lib/net462/RabbitMQ.Client.dll",
|
||||
"lib/net462/RabbitMQ.Client.xml",
|
||||
"lib/netstandard2.0/RabbitMQ.Client.dll",
|
||||
"lib/netstandard2.0/RabbitMQ.Client.xml",
|
||||
"rabbitmq.client.6.8.1.nupkg.sha512",
|
||||
"rabbitmq.client.nuspec"
|
||||
]
|
||||
},
|
||||
"System.Memory/4.5.5": {
|
||||
"sha512": "XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw==",
|
||||
"type": "package",
|
||||
"path": "system.memory/4.5.5",
|
||||
"files": [
|
||||
".nupkg.metadata",
|
||||
".signature.p7s",
|
||||
"LICENSE.TXT",
|
||||
"THIRD-PARTY-NOTICES.TXT",
|
||||
"lib/net461/System.Memory.dll",
|
||||
"lib/net461/System.Memory.xml",
|
||||
"lib/netcoreapp2.1/_._",
|
||||
"lib/netstandard1.1/System.Memory.dll",
|
||||
"lib/netstandard1.1/System.Memory.xml",
|
||||
"lib/netstandard2.0/System.Memory.dll",
|
||||
"lib/netstandard2.0/System.Memory.xml",
|
||||
"ref/netcoreapp2.1/_._",
|
||||
"system.memory.4.5.5.nupkg.sha512",
|
||||
"system.memory.nuspec",
|
||||
"useSharedDesignerContext.txt",
|
||||
"version.txt"
|
||||
]
|
||||
},
|
||||
"System.Threading.Channels/7.0.0": {
|
||||
"sha512": "qmeeYNROMsONF6ndEZcIQ+VxR4Q/TX/7uIVLJqtwIWL7dDWeh0l1UIqgo4wYyjG//5lUNhwkLDSFl+pAWO6oiA==",
|
||||
"type": "package",
|
||||
"path": "system.threading.channels/7.0.0",
|
||||
"files": [
|
||||
".nupkg.metadata",
|
||||
".signature.p7s",
|
||||
"Icon.png",
|
||||
"LICENSE.TXT",
|
||||
"THIRD-PARTY-NOTICES.TXT",
|
||||
"buildTransitive/net461/System.Threading.Channels.targets",
|
||||
"buildTransitive/net462/_._",
|
||||
"buildTransitive/net6.0/_._",
|
||||
"buildTransitive/netcoreapp2.0/System.Threading.Channels.targets",
|
||||
"lib/net462/System.Threading.Channels.dll",
|
||||
"lib/net462/System.Threading.Channels.xml",
|
||||
"lib/net6.0/System.Threading.Channels.dll",
|
||||
"lib/net6.0/System.Threading.Channels.xml",
|
||||
"lib/net7.0/System.Threading.Channels.dll",
|
||||
"lib/net7.0/System.Threading.Channels.xml",
|
||||
"lib/netstandard2.0/System.Threading.Channels.dll",
|
||||
"lib/netstandard2.0/System.Threading.Channels.xml",
|
||||
"lib/netstandard2.1/System.Threading.Channels.dll",
|
||||
"lib/netstandard2.1/System.Threading.Channels.xml",
|
||||
"system.threading.channels.7.0.0.nupkg.sha512",
|
||||
"system.threading.channels.nuspec",
|
||||
"useSharedDesignerContext.txt"
|
||||
]
|
||||
}
|
||||
},
|
||||
"projectFileDependencyGroups": {
|
||||
"net8.0": [
|
||||
"RabbitMQ.Client >= 6.8.1"
|
||||
]
|
||||
},
|
||||
"packageFolders": {
|
||||
"C:\\Users\\73bul\\.nuget\\packages\\": {}
|
||||
},
|
||||
"project": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_4\\RabbitMQ\\RabbitMQConsumer1\\RabbitMQConsumer1.csproj",
|
||||
"projectName": "RabbitMQConsumer1",
|
||||
"projectPath": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_4\\RabbitMQ\\RabbitMQConsumer1\\RabbitMQConsumer1.csproj",
|
||||
"packagesPath": "C:\\Users\\73bul\\.nuget\\packages\\",
|
||||
"outputPath": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_4\\RabbitMQ\\RabbitMQConsumer1\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"C:\\Users\\73bul\\AppData\\Roaming\\NuGet\\NuGet.Config",
|
||||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net8.0"
|
||||
],
|
||||
"sources": {
|
||||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
}
|
||||
},
|
||||
"frameworks": {
|
||||
"net8.0": {
|
||||
"targetAlias": "net8.0",
|
||||
"dependencies": {
|
||||
"RabbitMQ.Client": {
|
||||
"target": "Package",
|
||||
"version": "[6.8.1, )"
|
||||
}
|
||||
},
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.100/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "caeafH9URxshQLrAXD/ZZrt2XRgjvSXyGIn67QJ6RBisQv4ArV+0u7X4A1LlomdJk9pU62jRTs9rD+l46lUm8A==",
|
||||
"success": true,
|
||||
"projectFilePath": "D:\\Документы\\GitHub\\DAS_2023_1\\almukhammetov_bulat_lab_4\\RabbitMQ\\RabbitMQConsumer1\\RabbitMQConsumer1.csproj",
|
||||
"expectedPackageFiles": [
|
||||
"C:\\Users\\73bul\\.nuget\\packages\\rabbitmq.client\\6.8.1\\rabbitmq.client.6.8.1.nupkg.sha512",
|
||||
"C:\\Users\\73bul\\.nuget\\packages\\system.memory\\4.5.5\\system.memory.4.5.5.nupkg.sha512",
|
||||
"C:\\Users\\73bul\\.nuget\\packages\\system.threading.channels\\7.0.0\\system.threading.channels.7.0.0.nupkg.sha512"
|
||||
],
|
||||
"logs": []
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
using RabbitMQ.Client.Events;
|
||||
using RabbitMQ.Client;
|
||||
using System.Text;
|
||||
|
||||
var factory = new ConnectionFactory() { HostName = "localhost" };
|
||||
using (var connection = factory.CreateConnection())
|
||||
using (var channel = connection.CreateModel())
|
||||
{
|
||||
channel.ExchangeDeclare(exchange: "logs", type: ExchangeType.Fanout);
|
||||
|
||||
// Определение другого имени очереди
|
||||
var queueName = "myQueue2";
|
||||
channel.QueueDeclare(queue: queueName, durable: false, exclusive: false, autoDelete: false, arguments: null);
|
||||
|
||||
channel.QueueBind(queue: queueName, exchange: "logs", routingKey: "");
|
||||
|
||||
var consumer = new EventingBasicConsumer(channel);
|
||||
consumer.Received += (model, ea) =>
|
||||
{
|
||||
var body = ea.Body.ToArray();
|
||||
var message = Encoding.UTF8.GetString(body);
|
||||
Console.WriteLine(" [x] Доставлено {0}", message);
|
||||
|
||||
// Здесь нет задержки, сообщение обрабатывается моментально
|
||||
};
|
||||
|
||||
channel.BasicConsume(queue: queueName, autoAck: true, consumer: consumer);
|
||||
|
||||
Console.WriteLine(" Нажмитие [enter] для выхода.");
|
||||
Console.ReadLine();
|
||||
}
|
||||
|
@ -0,0 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="RabbitMQ.Client" Version="6.8.1" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
Binary file not shown.
@ -0,0 +1,61 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v8.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v8.0": {
|
||||
"RabbitMQConsumer2/1.0.0": {
|
||||
"dependencies": {
|
||||
"RabbitMQ.Client": "6.8.1"
|
||||
},
|
||||
"runtime": {
|
||||
"RabbitMQConsumer2.dll": {}
|
||||
}
|
||||
},
|
||||
"RabbitMQ.Client/6.8.1": {
|
||||
"dependencies": {
|
||||
"System.Memory": "4.5.5",
|
||||
"System.Threading.Channels": "7.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/netstandard2.0/RabbitMQ.Client.dll": {
|
||||
"assemblyVersion": "6.0.0.0",
|
||||
"fileVersion": "6.8.1.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Memory/4.5.5": {},
|
||||
"System.Threading.Channels/7.0.0": {}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"RabbitMQConsumer2/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"RabbitMQ.Client/6.8.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-jNsmGgmCNw2S/NzskeN2ijtGywtH4Sk/G6jWUTD5sY9SrC27Xz6BsLIiB8hdsfjeyWCa4j4GvCIGkpE8wrjU1Q==",
|
||||
"path": "rabbitmq.client/6.8.1",
|
||||
"hashPath": "rabbitmq.client.6.8.1.nupkg.sha512"
|
||||
},
|
||||
"System.Memory/4.5.5": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-XIWiDvKPXaTveaB7HVganDlOCRoj03l+jrwNvcge/t8vhGYKvqV+dMv6G4SAX2NoNmN0wZfVPTAlFwZcZvVOUw==",
|
||||
"path": "system.memory/4.5.5",
|
||||
"hashPath": "system.memory.4.5.5.nupkg.sha512"
|
||||
},
|
||||
"System.Threading.Channels/7.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-qmeeYNROMsONF6ndEZcIQ+VxR4Q/TX/7uIVLJqtwIWL7dDWeh0l1UIqgo4wYyjG//5lUNhwkLDSFl+pAWO6oiA==",
|
||||
"path": "system.threading.channels/7.0.0",
|
||||
"hashPath": "system.threading.channels.7.0.0.nupkg.sha512"
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,12 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net8.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "8.0.0"
|
||||
},
|
||||
"configProperties": {
|
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
|
@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Этот код создан программой.
|
||||
// Исполняемая версия:4.0.30319.42000
|
||||
//
|
||||
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
|
||||
// повторной генерации кода.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("RabbitMQConsumer2")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+a346187851ddda07b6b4d0de75645f9c8d61bee4")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("RabbitMQConsumer2")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("RabbitMQConsumer2")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Создано классом WriteCodeFragment MSBuild.
|
||||
|
@ -0,0 +1 @@
|
||||
97110d58e691e950607384ff5feeb3fb4fd189296bc628c439b6304314deb211
|
@ -0,0 +1,13 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net8.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = RabbitMQConsumer2
|
||||
build_property.ProjectDir = D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer2\
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
@ -0,0 +1,8 @@
|
||||
// <auto-generated/>
|
||||
global using global::System;
|
||||
global using global::System.Collections.Generic;
|
||||
global using global::System.IO;
|
||||
global using global::System.Linq;
|
||||
global using global::System.Net.Http;
|
||||
global using global::System.Threading;
|
||||
global using global::System.Threading.Tasks;
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
||||
69c26ed66bbec69cc86f3c4872219eab99625c6a470cb09dd2b2a87548291f32
|
@ -0,0 +1,34 @@
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer2\bin\Debug\net8.0\RabbitMQConsumer2.exe
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer2\bin\Debug\net8.0\RabbitMQConsumer2.deps.json
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer2\bin\Debug\net8.0\RabbitMQConsumer2.runtimeconfig.json
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer2\bin\Debug\net8.0\RabbitMQConsumer2.dll
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer2\bin\Debug\net8.0\RabbitMQConsumer2.pdb
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer2\bin\Debug\net8.0\RabbitMQ.Client.dll
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer2\obj\Debug\net8.0\RabbitMQConsumer2.csproj.AssemblyReference.cache
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer2\obj\Debug\net8.0\RabbitMQConsumer2.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer2\obj\Debug\net8.0\RabbitMQConsumer2.AssemblyInfoInputs.cache
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer2\obj\Debug\net8.0\RabbitMQConsumer2.AssemblyInfo.cs
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer2\obj\Debug\net8.0\RabbitMQConsumer2.csproj.CoreCompileInputs.cache
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer2\obj\Debug\net8.0\RabbitMQConsumer2.csproj.CopyComplete
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer2\obj\Debug\net8.0\RabbitMQConsumer2.dll
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer2\obj\Debug\net8.0\refint\RabbitMQConsumer2.dll
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer2\obj\Debug\net8.0\RabbitMQConsumer2.pdb
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer2\obj\Debug\net8.0\RabbitMQConsumer2.genruntimeconfig.cache
|
||||
C:\Users\73bul\source\repos\RabbitMQPublisher\RabbitMQConsumer2\obj\Debug\net8.0\ref\RabbitMQConsumer2.dll
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer2\bin\Debug\net8.0\RabbitMQConsumer2.exe
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer2\bin\Debug\net8.0\RabbitMQConsumer2.deps.json
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer2\bin\Debug\net8.0\RabbitMQConsumer2.runtimeconfig.json
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer2\bin\Debug\net8.0\RabbitMQConsumer2.dll
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer2\bin\Debug\net8.0\RabbitMQConsumer2.pdb
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer2\bin\Debug\net8.0\RabbitMQ.Client.dll
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer2\obj\Debug\net8.0\RabbitMQConsumer2.csproj.AssemblyReference.cache
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer2\obj\Debug\net8.0\RabbitMQConsumer2.GeneratedMSBuildEditorConfig.editorconfig
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer2\obj\Debug\net8.0\RabbitMQConsumer2.AssemblyInfoInputs.cache
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer2\obj\Debug\net8.0\RabbitMQConsumer2.AssemblyInfo.cs
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer2\obj\Debug\net8.0\RabbitMQConsumer2.csproj.CoreCompileInputs.cache
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer2\obj\Debug\net8.0\RabbitMQConsumer2.csproj.CopyComplete
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer2\obj\Debug\net8.0\RabbitMQConsumer2.dll
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer2\obj\Debug\net8.0\refint\RabbitMQConsumer2.dll
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer2\obj\Debug\net8.0\RabbitMQConsumer2.pdb
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer2\obj\Debug\net8.0\RabbitMQConsumer2.genruntimeconfig.cache
|
||||
D:\Документы\GitHub\DAS_2023_1\almukhammetov_bulat_lab_4\RabbitMQ\RabbitMQConsumer2\obj\Debug\net8.0\ref\RabbitMQConsumer2.dll
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user