Skip to content

Commit 445b200

Browse files
committed
phase 1: refactor base libs
1 parent bfcd533 commit 445b200

File tree

60 files changed

+722
-505
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+722
-505
lines changed
0 Bytes
Binary file not shown.

.vs/netcorekit/v15/Server/sqlite3/db.lock

Whitespace-only changes.
-9.47 MB
Binary file not shown.
-32 KB
Binary file not shown.
-3.95 MB
Binary file not shown.

.vs/netcorekit/v16/.suo

10.5 KB
Binary file not shown.

.vs/netcorekit/v16/Server/sqlite3/db.lock

Whitespace-only changes.
-4.73 MB
Binary file not shown.

samples/BiMonetaryApi/Startup.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using Microsoft.Extensions.Configuration;
44
using Microsoft.Extensions.DependencyInjection;
55
using NetCoreKit.RestTemplate.MongoDb;
6-
using MyExchangeService = NetCoreKit.Samples.BiMonetaryApi.Rpc.ExchangeService;
6+
using static NetCoreKit.Samples.BiMonetaryApi.Rpc.ExchangeService;
77

88
namespace NetCoreKit.Samples.BiMonetaryApi
99
{
@@ -15,8 +15,8 @@ public void ConfigureServices(IServiceCollection services)
1515
{
1616
var config = resolver.GetService<IConfiguration>();
1717
var channel = new Channel(config["RpcClients:ExchangeService"], ChannelCredentials.Insecure);
18-
var client = new MyExchangeService.ExchangeServiceClient(channel);
19-
services.AddSingleton(typeof(MyExchangeService.ExchangeServiceClient), client);
18+
var client = new ExchangeServiceClient(channel);
19+
services.AddSingleton(typeof(ExchangeServiceClient), client);
2020
});
2121
}
2222

samples/BiMonetaryApi/v1/Controllers/TickerController.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using NetCoreKit.Domain;
66
using NetCoreKit.Infrastructure.Mongo;
77
using NetCoreKit.Samples.BiMonetaryApi.Rpc;
8-
using MyExchangeService = NetCoreKit.Samples.BiMonetaryApi.Rpc.ExchangeService;
8+
using static NetCoreKit.Samples.BiMonetaryApi.Rpc.ExchangeService;
99

1010
namespace NetCoreKit.Samples.BiMonetaryApi.v1.Controllers
1111
{
@@ -48,12 +48,12 @@ public class TickerController : ControllerBase
4848
{
4949
private readonly IQueryRepositoryFactory _repositoryFactory;
5050
private readonly IUnitOfWorkAsync _uow;
51-
private readonly MyExchangeService.ExchangeServiceClient _exchangeServiceClient;
51+
private readonly ExchangeServiceClient _exchangeServiceClient;
5252

5353
public TickerController(
5454
IQueryRepositoryFactory repositoryFactory,
5555
IUnitOfWorkAsync uow,
56-
MyExchangeService.ExchangeServiceClient exchangeServiceClient)
56+
ExchangeServiceClient exchangeServiceClient)
5757
{
5858
_repositoryFactory = repositoryFactory;
5959
_uow = uow;

0 commit comments

Comments
 (0)