Beispiel #1
0
        public RemoteHost(IRequestPropertiesProvider requestPropertiesProvider)
        {
            var properties = requestPropertiesProvider.GetProperties();

            Host = properties[RemoteHostProperty].ToString();
            Port = properties[RemotePortProperty].TryParseInt();
        }
Beispiel #2
0
        public Task <BindResult> Bind(RequestBinderContext context)
        {
            var parameters = _routeDescriptor.Parameters
                             .Where(x => IncludeParameter(x, _configuration.RequestInfoBindingMode)).ToArray();

            return(_argumentBinder.Bind(_requestProperties.GetProperties().ToLookup(),
                                        context.ActionArguments, parameters, MapParameterName).ToTaskResult());
        }