Class Util
Provides extension methods for working with repository clients.
Inheritance
System.Object
Util
Namespace: Algenta.Colectica.Repository.Client
Assembly: Algenta.Colectica.Repository.Client.dll
Syntax
public static class Util : object
Methods
UsingWcf<T>(T, Action<T>)
Executes an action using the IRepositoryService.
Declaration
public static void UsingWcf<T>(this T client, Action<T> action)where T : IRepositoryService
Parameters
| Type | Name | Description |
|---|---|---|
| T | client | The client with which to execute the action. |
| Action<T> | action | The action to execute. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the repository service to use. |
UsingWcfAsync<T>(T, Func<T, Task>)
Executes an action using the IRepositoryService.
Declaration
public static Task UsingWcfAsync<T>(this T client, Func<T, Task> action)where T : IRepositoryService
Parameters
| Type | Name | Description |
|---|---|---|
| T | client | The client with which to execute the action. |
| Func<T, Task> | action | The async function to execute. |
Returns
| Type | Description |
|---|---|
| Task |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the repository service to use. |