Skip to content

Commit

Permalink
Remove ISampleAppService. close #8
Browse files Browse the repository at this point in the history
  • Loading branch information
gdlcf88 committed Mar 20, 2020
1 parent cae9518 commit 5f3755d
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 138 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ namespace EasyAbp.PrivateMessaging
typeof(AbpTenantManagementWebModule),
typeof(AbpTenantManagementApplicationModule),
typeof(AbpTenantManagementEntityFrameworkCoreModule),
typeof(AbpAspNetCoreMvcUiStislaThemeModule),
// typeof(AbpAspNetCoreMvcUiBasicThemeModule),
// typeof(AbpAspNetCoreMvcUiStislaThemeModule),
typeof(AbpAspNetCoreMvcUiBasicThemeModule),
typeof(AbpAspNetCoreSerilogModule)
)]
public class PrivateMessagingWebUnifiedModule : AbpModule
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

33 changes: 0 additions & 33 deletions src/EasyAbp.PrivateMessaging.HttpApi/Samples/SampleController.cs

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,20 @@
using System.Threading.Tasks;
using IdentityModel.Client;
using Microsoft.Extensions.Configuration;
using EasyAbp.PrivateMessaging.Samples;
using Volo.Abp.DependencyInjection;
using Volo.Abp.IdentityModel;

namespace EasyAbp.PrivateMessaging
{
public class ClientDemoService : ITransientDependency
{
private readonly ISampleAppService _sampleAppService;
private readonly IIdentityModelAuthenticationService _authenticationService;
private readonly IConfiguration _configuration;

public ClientDemoService(
ISampleAppService sampleAppService,
IIdentityModelAuthenticationService authenticationService,
IConfiguration configuration)
{
_sampleAppService = sampleAppService;
_authenticationService = authenticationService;
_configuration = configuration;
}
Expand All @@ -41,11 +37,6 @@ private async Task TestWithDynamicProxiesAsync()
Console.WriteLine();
Console.WriteLine($"***** {nameof(TestWithDynamicProxiesAsync)} *****");

var result = await _sampleAppService.GetAsync();
Console.WriteLine("Result: " + result.Value);

result = await _sampleAppService.GetAuthorizedAsync();
Console.WriteLine("Result (authorized): " + result.Value);
}

/* Shows how to use HttpClient to perform a request to the HTTP API.
Expand Down

0 comments on commit 5f3755d

Please sign in to comment.