public Task <IValueProvider> BindAsync(ServiceBusEntity value, ValueBindingContext context)
            {
                IConverter <TInput, BrokeredMessage> converter = new UserTypeToBrokeredMessageConverter <TInput>();
                IValueProvider provider = new ConverterValueBinder <TInput>(value, converter,
                                                                            context.FunctionInstanceId);

                return(Task.FromResult(provider));
            }
Exemple #2
0
            public Task <IValueProvider> BindAsync(ServiceBusEntity value, ValueBindingContext context)
            {
                if (context == null)
                {
                    throw new ArgumentNullException(nameof(context));
                }

                IConverter <TInput, Message> converter = new UserTypeToBrokeredMessageConverter <TInput>();
                IValueProvider provider = new ConverterValueBinder <TInput>(value, converter,
                                                                            context.FunctionInstanceId);

                return(Task.FromResult(provider));
            }