Skip to content

Pact Impersonation WindowsImpersonator

welshronaldo edited this page May 30, 2022 · 8 revisions

WindowsImpersonator Class

Windows-specific impersonation implementation

public class WindowsImpersonator :
Pact.Impersonation.IImpersonator

Inheritance System.Object 🡒 WindowsImpersonator

Implements IImpersonator

Methods
Execute<T>(ImpersonationSettings, Func<T>) Executes the provided action within the impersonated context
Execute(ImpersonationSettings, Action) Executes the provided action within the impersonated context
ExecuteAsync<T>(ImpersonationSettings, Func<Task<T>>) Executes the provided action within the impersonated context
ExecuteAsync(ImpersonationSettings, Func<Task>) Executes the provided action within the impersonated context
Clone this wiki locally