mirror of https://github.com/abpframework/abp.git
9 changed files with 222 additions and 4 deletions
@ -0,0 +1,24 @@ |
|||
# CMS Kit |
|||
|
|||
## Updating Client Proxies |
|||
|
|||
This project have 3 types of client proxies. Before updating client proxies, make sure `Volo.CmsKit.Web.Unified` project is running. |
|||
Then you can update Client proxies in 3 different projects. Execute the following commands in the directory of the each project. |
|||
|
|||
- CMS Kit Public (**Volo.CmsKit.Public.HttpApi.Client**) |
|||
```bash |
|||
abp generate-proxy -t csharp -url https://localhost:44349 -m cms-kit --without-contracts |
|||
``` |
|||
|
|||
- CMS Kit Common (**Volo.CmsKit.Common.HttpApi.Client**) |
|||
|
|||
```bash |
|||
abp generate-proxy -t csharp -url https://localhost:44349 -m cms-kit-common --without-contracts |
|||
``` |
|||
|
|||
- CMS Kit Admin (**Volo.CmsKit.Admin.HttpApi.Client**) |
|||
|
|||
```bash |
|||
abp generate-proxy -t csharp -url https://localhost:44349 -m cms-kit-admin --without-contracts |
|||
``` |
|||
|
|||
@ -0,0 +1,28 @@ |
|||
// This file is automatically generated by ABP framework to use MVC Controllers from CSharp
|
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.CmsKit.Blogs; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Blogs; |
|||
|
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(IBlogFeatureAppService), typeof(BlogFeatureClientProxy))] |
|||
public partial class BlogFeatureClientProxy : ClientProxyBase<IBlogFeatureAppService>, IBlogFeatureAppService |
|||
{ |
|||
public virtual async Task<BlogFeatureDto> GetOrDefaultAsync(Guid blogId, string featureName) |
|||
{ |
|||
return await RequestAsync<BlogFeatureDto>(nameof(GetOrDefaultAsync), new ClientProxyRequestTypeValue |
|||
{ |
|||
{ typeof(Guid), blogId }, |
|||
{ typeof(string), featureName } |
|||
}); |
|||
} |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
// This file is part of BlogFeatureClientProxy, you can customize it here
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.Blogs; |
|||
|
|||
public partial class BlogFeatureClientProxy |
|||
{ |
|||
} |
|||
@ -0,0 +1,28 @@ |
|||
// This file is automatically generated by ABP framework to use MVC Controllers from CSharp
|
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Content; |
|||
using Volo.Abp.DependencyInjection; |
|||
using Volo.Abp.Http.Client; |
|||
using Volo.Abp.Http.Client.ClientProxying; |
|||
using Volo.Abp.Http.Modeling; |
|||
using Volo.CmsKit.MediaDescriptors; |
|||
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.MediaDescriptors; |
|||
|
|||
[Dependency(ReplaceServices = true)] |
|||
[ExposeServices(typeof(IMediaDescriptorAppService), typeof(MediaDescriptorClientProxy))] |
|||
public partial class MediaDescriptorClientProxy : ClientProxyBase<IMediaDescriptorAppService>, IMediaDescriptorAppService |
|||
{ |
|||
public virtual async Task<RemoteStreamContent> DownloadAsync(Guid id) |
|||
{ |
|||
return await RequestAsync<RemoteStreamContent>(nameof(DownloadAsync), new ClientProxyRequestTypeValue |
|||
{ |
|||
{ typeof(Guid), id } |
|||
}); |
|||
} |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
// This file is part of MediaDescriptorClientProxy, you can customize it here
|
|||
// ReSharper disable once CheckNamespace
|
|||
namespace Volo.CmsKit.MediaDescriptors; |
|||
|
|||
public partial class MediaDescriptorClientProxy |
|||
{ |
|||
} |
|||
Loading…
Reference in new issue