protected internal override void InternalRegisterDependencies(IDependencyCollection dependencies) { if (m_address.OffsetElement != null) { dependencies.Add(m_address.OffsetElement); } }
public static IDependencyCollection UseSerilog(this IDependencyCollection collection, IConfigurationProvider configurationProvider) { Log.Logger = new LoggerConfiguration() .ReadFrom.Configuration(configurationProvider.GetRoot()) .CreateLogger(); collection.Add <SerilogDependencyDescriptor>(); return(collection); }
internal override void RegisterDependencies(IDependencyCollection dependencies) { dependencies.Add(m_offsetElement); }
// ReSharper disable once InconsistentNaming public static IDependencyCollection UseDynamoDB(this IDependencyCollection collection) { collection.Add(new DependencyDescriptor()); return(collection); }
public static IDependencyCollection UseCurrentDomain(this IDependencyCollection collection) { collection.Add(new CurrentDomainDependencyDescriptor()); return(collection); }
public static IDependencyCollection UseModule <T>(this IDependencyCollection collection) where T : Module, new() { collection.Add(new DependencyDescriptor <T>()); return(collection); }
public static IDependencyCollection Configure <T>(this IDependencyCollection collection, T value) { collection.Add(new SettingsDependencyDescriptor <T>(() => value)); return(collection); }
public static IDependencyCollection Configure <T>(this IDependencyCollection collection, Func <T> valueFactory) { collection.Add(new SettingsDependencyDescriptor <T>(valueFactory)); return(collection); }
public static IDependencyCollection UseSettingsProvider(this IDependencyCollection collection, IConfigurationProvider configurationProvider) { collection.Add(new ProviderDependencyDescriptor(configurationProvider)); return(collection); }