public Task<ITriggerData> BindAsync(object value, ValueBindingContext context)
 {
     // TODO: Perform any required conversions on the value
     // E.g. convert from Dashboard invoke string to our trigger
     // value type
     SampleTriggerValue triggerValue = value as SampleTriggerValue;
     IValueBinder valueBinder = new SampleValueBinder(_parameter, triggerValue);
     return Task.FromResult<ITriggerData>(new TriggerData(valueBinder, GetBindingData(triggerValue)));
 }
Пример #2
0
            public Task <ITriggerData> BindAsync(object value, ValueBindingContext context)
            {
                // TODO: Perform any required conversions on the value
                // E.g. convert from Dashboard invoke string to our trigger
                // value type
                SampleTriggerValue triggerValue = value as SampleTriggerValue;
                IValueBinder       valueBinder  = new SampleValueBinder(_parameter, triggerValue);

                return(Task.FromResult <ITriggerData>(new TriggerData(valueBinder, GetBindingData(triggerValue))));
            }