Show / Hide Table of Contents

Class Util

Provides extension methods for working with repository clients.

Inheritance
Object
Util
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: Algenta.Colectica.Repository.Client
Assembly: Algenta.Colectica.Repository.Client.dll
Syntax
public static class Util

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.

Exceptions
Type Condition
InvalidOperationException

unexpected channel

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.

Exceptions
Type Condition
InvalidOperationException

unexpected channel

In This Article
Back to top Generated by DocFX