Esempio n. 1
0
 public Failed(MutationRequest request, string resource, TInput input, string exception)
 {
     Request      = request.ToString();
     ResourceType = resource;
     Input        = input;
     Exception    = exception;
 }
Esempio n. 2
0
 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
     });
 }
Esempio n. 4
0
 static bool match(MethodInfo mi, Type grainType, MutationRequest request)
 => mi.Name.ToUpperInvariant() == request.ToString().ToUpperInvariant() &&
 mi.IsPublic &&
 ReturnTypeMatches(mi) &&
 !mi.GetParameters().Any();
Esempio n. 5
0
 public Ignored(MutationRequest request, string resource, TInput input)
 {
     Request      = request.ToString();
     ResourceType = resource;
     Input        = input;
 }