public async Task HandleNotification(IEncounterContext context, JToken parameters) { await Handler.HandleRequestAsync(context, parameters.ToObject <TRequest>()); }
public abstract Task <IEncounterResult> HandleRequestAsync(IEncounterContext context, T request);
public async Task <object> HandleRequest(IEncounterContext context, JToken parameters) { var response = await Handler.HandleRequestAsync(context, parameters.ToObject <TRequest>()); return(response); }
public bool CanHandle(IEncounterContext context) { return(Method.Equals(context.Method, StringComparison.OrdinalIgnoreCase)); }
public abstract Task HandleRequestAsync(IEncounterContext context, T notification);
public override Task <IEncounterResult> HandleRequestAsync(IEncounterContext context, InitializeRequest initializeRequest) { throw new System.NotImplementedException(); }
public IList <IHandlerRegistration> GetRegistrations(IEncounterContext context) { return(_registrations.Where(x => x.CanHandle(context)).ToList()); }