public Task <IBinding> TryCreateAsync(BindingProviderContext context)
        {
            ParameterInfo parameter = context.Parameter;

            if (parameter.ParameterType != typeof(IBinder))
            {
                return(Task.FromResult <IBinding>(null));
            }

            IBinding binding = new RuntimeBinding(parameter.Name, _bindingProviderGetter);

            return(Task.FromResult(binding));
        }
        public Task<IBinding> TryCreateAsync(BindingProviderContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            ParameterInfo parameter = context.Parameter;
            if (parameter.ParameterType != typeof(IBinder))
            {
                return Task.FromResult<IBinding>(null);
            }

            IBinding binding = new RuntimeBinding(context.Parameter, _bindingProviderGetter);
            return Task.FromResult(binding);
        }
        public Task <IBinding> TryCreateAsync(BindingProviderContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            ParameterInfo parameter = context.Parameter;

            if (parameter.ParameterType != typeof(IBinder))
            {
                return(Task.FromResult <IBinding>(null));
            }

            IBinding binding = new RuntimeBinding(parameter.Name, _bindingProviderGetter);

            return(Task.FromResult(binding));
        }