Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TakeStock
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pengjinyang
TakeStock
Commits
41ab4bd7
Commit
41ab4bd7
authored
Jul 12, 2019
by
pengjinyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
c52c0aa5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
12 deletions
+4
-12
Domain.csproj
Domain/Domain.csproj
+0
-1
Service.csproj
Service/Service.csproj
+0
-2
Program.cs
TakeStock.Subscriber/Program.cs
+3
-1
Startup.cs
TakeStock.Web/Startup.cs
+1
-2
TakeStock.sln
TakeStock.sln
+0
-6
No files found.
Domain/Domain.csproj
View file @
41ab4bd7
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
</PropertyGroup>
</PropertyGroup>
<ItemGroup>
<ItemGroup>
<PackageReference Include="EasyNetQ" Version="3.5.2" />
<PackageReference Include="sqlSugarCore" Version="4.9.9.10" />
<PackageReference Include="sqlSugarCore" Version="4.9.9.10" />
</ItemGroup>
</ItemGroup>
...
...
Service/Service.csproj
View file @
41ab4bd7
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
<ItemGroup>
<ItemGroup>
<PackageReference Include="EasyNetQ" Version="3.5.2" />
<PackageReference Include="EasyNetQ" Version="3.5.2" />
<PackageReference Include="EasyNetQ.DI.Microsoft" Version="3.5.1" />
<PackageReference Include="Hangfire.Core" Version="1.7.3" />
<PackageReference Include="Hangfire.Core" Version="1.7.3" />
<PackageReference Include="Microsoft.Extensions.Http" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="2.2.0" />
</ItemGroup>
</ItemGroup>
...
@@ -14,7 +13,6 @@
...
@@ -14,7 +13,6 @@
<ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Common\Common.csproj" />
<ProjectReference Include="..\Common\Common.csproj" />
<ProjectReference Include="..\IService\IService.csproj" />
<ProjectReference Include="..\IService\IService.csproj" />
<ProjectReference Include="..\MessageQueue\MessageQueue.csproj" />
<ProjectReference Include="..\Message\Message.csproj" />
<ProjectReference Include="..\Message\Message.csproj" />
</ItemGroup>
</ItemGroup>
...
...
TakeStock.Subscriber/Program.cs
View file @
41ab4bd7
...
@@ -17,6 +17,7 @@ namespace TakeStock.Subscriber
...
@@ -17,6 +17,7 @@ namespace TakeStock.Subscriber
try
try
{
{
Init
();
Init
();
//111.230.164.154
var
connStr
=
"host=owms-rabbitmq:5672;username=bailun;password=1234abcd;prefetchcount=2;publisherConfirms=true;timeout=10"
;
var
connStr
=
"host=owms-rabbitmq:5672;username=bailun;password=1234abcd;prefetchcount=2;publisherConfirms=true;timeout=10"
;
var
bus
=
RabbitHutch
.
CreateBus
(
connStr
);
var
bus
=
RabbitHutch
.
CreateBus
(
connStr
);
bus
.
SubscribeAsync
<
CreateTakeStockMessage
>(
"Create"
,
async
message
=>
await
Exec
(
message
)
bus
.
SubscribeAsync
<
CreateTakeStockMessage
>(
"Create"
,
async
message
=>
await
Exec
(
message
)
...
@@ -56,7 +57,8 @@ namespace TakeStock.Subscriber
...
@@ -56,7 +57,8 @@ namespace TakeStock.Subscriber
services
.
AddHttpClient
(
"TakeStock"
,
c
=>
services
.
AddHttpClient
(
"TakeStock"
,
c
=>
{
{
c
.
Timeout
=
TimeSpan
.
FromSeconds
(
30
);
c
.
Timeout
=
TimeSpan
.
FromSeconds
(
30
);
c
.
BaseAddress
=
new
Uri
(
"http://193.112.230.53:5002/api/"
);
//193.112.230.53
c
.
BaseAddress
=
new
Uri
(
"http://wms-takestock-api:5002/api/"
);
});
});
serviceProvider
=
services
.
BuildServiceProvider
();
serviceProvider
=
services
.
BuildServiceProvider
();
...
...
TakeStock.Web/Startup.cs
View file @
41ab4bd7
using
Hangfire
;
using
Hangfire
;
using
Hangfire.MySql
;
using
Hangfire.MySql
;
using
IService.TakeStock
;
using
IService.TakeStock
;
using
MessageQueue
;
using
Microsoft.AspNetCore.Builder
;
using
Microsoft.AspNetCore.Builder
;
using
Microsoft.AspNetCore.Hosting
;
using
Microsoft.AspNetCore.Hosting
;
using
Microsoft.AspNetCore.Http
;
using
Microsoft.AspNetCore.Http
;
...
@@ -35,7 +34,7 @@ namespace TakeStock.Web
...
@@ -35,7 +34,7 @@ namespace TakeStock.Web
RegisterHttpClient
(
services
);
RegisterHttpClient
(
services
);
services
.
AddScoped
<
RabbitMQClient
>();
//
services.AddScoped<RabbitMQClient>();
services
.
AddScoped
<
ITakeStockService
,
TakeStockService
>();
services
.
AddScoped
<
ITakeStockService
,
TakeStockService
>();
// Add Hangfire services.
// Add Hangfire services.
...
...
TakeStock.sln
View file @
41ab4bd7
...
@@ -35,8 +35,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TakeStock.Subscriber", "Tak
...
@@ -35,8 +35,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TakeStock.Subscriber", "Tak
EndProject
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Message", "Message\Message.csproj", "{44038020-A9C7-4A6D-BE1C-8A58E0E539B5}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Message", "Message\Message.csproj", "{44038020-A9C7-4A6D-BE1C-8A58E0E539B5}"
EndProject
EndProject
Project("{E53339B2-1760-4266-BCC7-CA923CBCF16C}") = "docker-compose", "docker-compose.dcproj", "{64D69277-72E8-4F9C-8AE6-654AFA7B9471}"
EndProject
Global
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|Any CPU = Debug|Any CPU
...
@@ -87,10 +85,6 @@ Global
...
@@ -87,10 +85,6 @@ Global
{44038020-A9C7-4A6D-BE1C-8A58E0E539B5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{44038020-A9C7-4A6D-BE1C-8A58E0E539B5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{44038020-A9C7-4A6D-BE1C-8A58E0E539B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{44038020-A9C7-4A6D-BE1C-8A58E0E539B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{44038020-A9C7-4A6D-BE1C-8A58E0E539B5}.Release|Any CPU.Build.0 = Release|Any CPU
{44038020-A9C7-4A6D-BE1C-8A58E0E539B5}.Release|Any CPU.Build.0 = Release|Any CPU
{64D69277-72E8-4F9C-8AE6-654AFA7B9471}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{64D69277-72E8-4F9C-8AE6-654AFA7B9471}.Debug|Any CPU.Build.0 = Debug|Any CPU
{64D69277-72E8-4F9C-8AE6-654AFA7B9471}.Release|Any CPU.ActiveCfg = Release|Any CPU
{64D69277-72E8-4F9C-8AE6-654AFA7B9471}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
HideSolutionNode = FALSE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment