Esempio n. 1
0
 private static void AddBindingData(Dictionary <string, object> bindingData, WebPubSubTriggerEvent triggerEvent)
 {
     bindingData.Add(nameof(triggerEvent.ConnectionContext), triggerEvent.ConnectionContext);
     bindingData.Add(nameof(triggerEvent.Message), triggerEvent.Message);
     bindingData.Add(nameof(triggerEvent.DataType), triggerEvent.DataType);
     bindingData.Add(nameof(triggerEvent.Claims), triggerEvent.Claims);
     bindingData.Add(nameof(triggerEvent.Query), triggerEvent.Query);
     bindingData.Add(nameof(triggerEvent.Reason), triggerEvent.Reason);
     bindingData.Add(nameof(triggerEvent.Subprotocols), triggerEvent.Subprotocols);
     bindingData.Add(nameof(triggerEvent.ClientCertificates), triggerEvent.ClientCertificates);
 }
Esempio n. 2
0
 public WebPubSubTriggerValueProvider(ParameterInfo parameter, WebPubSubTriggerEvent triggerEvent)
 {
     _parameter    = parameter ?? throw new ArgumentNullException(nameof(parameter));
     _triggerEvent = triggerEvent ?? throw new ArgumentNullException(nameof(triggerEvent));
 }