ClassProfilerCommunicationLayer
Definition
Namespace:ArtOfTest.WebAii.Design.Execution.Profiler
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
public class ProfilerCommunicationLayer : BaseCommunicationLayer, IProfilerCommunicationLayer, IBaseCommunicationLayer
Inheritance: objectProfilerCommunicationLayer
Implements:
Constructors
ProfilerCommunicationLayer(Uri, ISerializerService, ISecureHttpClientProvider, IStatusCodeToExceptionMapper)
Declaration
public ProfilerCommunicationLayer(Uri profilerUri, ISerializerService serializer, ISecureHttpClientProvider secureHttpClientProvider, IStatusCodeToExceptionMapper exceptionMapper)
Parameters
profilerUri
serializer
ISerializerService
secureHttpClientProvider
ISecureHttpClientProvider
exceptionMapper
IStatusCodeToExceptionMapper
Methods
AfterExecuteStep(Guid, int, string)
Performs actions after a step executes
BeforeExecuteStep(Guid, int, string)
Performs actions before a step executes
GetAndRemoveSampledProfilerData(Guid)
Retrieves the profiled data samples
Declaration
public Task<Dictionary<string, IProfilerPluginConfigurationSettings>> GetAndRemoveSampledProfilerData(Guid testId)
Parameters
testId
Returns
Task<Dictionary<string, IProfilerPluginConfigurationSettings>>
GetCalculatedClientTimeUtc(Guid)
Calculates and gets the client time from the server
GetEnvironmentConfigurationOptions(Guid)
Retrieves configuration options
GetServerTimeUtc()
Gets the server time
Initialize(Guid, Dictionary<Guid, IProfilerPluginConfigurationSettings>)
Prepare for profiling
Declaration
public Task Initialize(Guid testId, Dictionary<Guid, IProfilerPluginConfigurationSettings> profilerConfigurations)
Parameters
testId
profilerConfigurations
Dictionary<Guid, IProfilerPluginConfigurationSettings>
Returns
IsProfilerValid()
Was the profiler initialized successfully
ProveSameComputerPresence(Guid)
Returns the server's Guid that is linked to the client's Guid
SetServerTimeUtc(Guid, DateTime)
Updates the server with client time
StartProfiling(Guid)
Starts profiling a test
StopTestProfiling(Guid)
Stops profiling a test
TerminateProfiler()
Cleans up and disconnects a profiler