3 changed files with 51 additions and 37 deletions
@ -1,22 +1,22 @@ |
|||
using Dapr.Client; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace LINGYUN.Abp.Dapr.Client |
|||
{ |
|||
public class AbpDaprClientBuilderOptions |
|||
{ |
|||
public List<Action<string, DaprClient>> ProxyClientActions { get; } |
|||
|
|||
public List<Action<string, IServiceProvider, DaprClientBuilder>> ProxyClientBuildActions { get; } |
|||
|
|||
internal HashSet<string> ConfiguredProxyClients { get; } |
|||
|
|||
public AbpDaprClientBuilderOptions() |
|||
{ |
|||
ConfiguredProxyClients = new HashSet<string>(); |
|||
ProxyClientActions = new List<Action<string, DaprClient>>(); |
|||
ProxyClientBuildActions = new List<Action<string, IServiceProvider, DaprClientBuilder>>(); |
|||
} |
|||
} |
|||
} |
|||
using Dapr.Client; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace LINGYUN.Abp.Dapr.Client |
|||
{ |
|||
public class AbpDaprClientBuilderOptions |
|||
{ |
|||
public List<Action<string, DaprClient>> ProxyClientActions { get; } |
|||
|
|||
public List<Action<string, IServiceProvider, DaprClientBuilder>> ProxyClientBuildActions { get; } |
|||
|
|||
internal HashSet<string> ConfiguredProxyClients { get; } |
|||
|
|||
public AbpDaprClientBuilderOptions() |
|||
{ |
|||
ConfiguredProxyClients = new HashSet<string>(); |
|||
ProxyClientActions = new List<Action<string, DaprClient>>(); |
|||
ProxyClientBuildActions = new List<Action<string, IServiceProvider, DaprClientBuilder>>(); |
|||
} |
|||
} |
|||
} |
|||
|
|||
@ -1,15 +1,24 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace LINGYUN.Abp.Dapr.Client.DynamicProxying |
|||
{ |
|||
public class AbpDaprClientProxyOptions |
|||
{ |
|||
public Dictionary<Type, DynamicDaprClientProxyConfig> DaprClientProxies { get; set; } |
|||
|
|||
public AbpDaprClientProxyOptions() |
|||
{ |
|||
DaprClientProxies = new Dictionary<Type, DynamicDaprClientProxyConfig>(); |
|||
} |
|||
} |
|||
} |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Net.Http; |
|||
|
|||
namespace LINGYUN.Abp.Dapr.Client.DynamicProxying |
|||
{ |
|||
public class AbpDaprClientProxyOptions |
|||
{ |
|||
public Dictionary<Type, DynamicDaprClientProxyConfig> DaprClientProxies { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 增加一个可配置的请求消息
|
|||
/// 参数一: appId
|
|||
/// 参数二: HttpRequestMessage
|
|||
/// </summary>
|
|||
public List<Action<string, HttpRequestMessage>> ProxyRequestActions { get; } |
|||
|
|||
public AbpDaprClientProxyOptions() |
|||
{ |
|||
DaprClientProxies = new Dictionary<Type, DynamicDaprClientProxyConfig>(); |
|||
ProxyRequestActions = new List<Action<string, HttpRequestMessage>>(); |
|||
} |
|||
} |
|||
} |
|||
|
|||
Loading…
Reference in new issue