public Failed(MutationRequest request, string resource, TInput input, string exception) { Request = request.ToString(); ResourceType = resource; Input = input; Exception = exception; }
public Rejected(MutationRequest request, string resource, TInput input, string reason) { Request = request.ToString(); ResourceType = resource; Input = input; Reason = reason; }
public void TrackRequest <TResource, TInput>(MutationRequest request, string id) { _telemetry.TrackEvent(request.ToString(), new Dictionary <string, string> { ["resource"] = typeof(TResource).Name, ["input"] = typeof(TInput).Name, ["resource_id"] = id, ["correlation_id"] = CorrelationId }); }
static bool match(MethodInfo mi, Type grainType, MutationRequest request) => mi.Name.ToUpperInvariant() == request.ToString().ToUpperInvariant() && mi.IsPublic && ReturnTypeMatches(mi) && !mi.GetParameters().Any();
public Ignored(MutationRequest request, string resource, TInput input) { Request = request.ToString(); ResourceType = resource; Input = input; }