19 public static class LocalProxyExtensions
25 public static DataPortalClientOptions UseLocalProxy(
this DataPortalClientOptions config)
27 return UseLocalProxy(config,
null);
35 public static DataPortalClientOptions UseLocalProxy(
this DataPortalClientOptions config, Action<LocalProxyOptions> options)
37 var existingOptions = config.Services.Where(i => i.ServiceType.Equals(typeof(
IDataPortalProxy))).FirstOrDefault();
38 if (existingOptions?.ImplementationInstance is not
LocalProxyOptions proxyOptions)
40 options?.Invoke(proxyOptions);
42 config.Services.AddTransient((p) => proxyOptions);
Implements a data portal proxy to relay data portal calls to an application server hosted locally in ...
Interface implemented by client-side data portal proxy objects.