Esempio n. 1
0
        public static IAmbientValuesRegistration RegisterValue <T>(this IAmbientValuesRegistration @this, string name, T value) where T : IComparable
        {
            var directProvider = new DirectProvider(typeof(T), value);

            @this.AddProvider(name, (services) => directProvider);
            return(@this);
        }
Esempio n. 2
0
 IAmbientValuesRegistrationFrom <T> IAmbientValuesProviderConfiguration <T> .ProvidedBy <TProvider>()
 {
     _registration.AddProvider <TProvider>(_propInfo.Name, _configAction);
     return(_from);
 }