public ExtensionManager( IServiceRegistration serviceRegistration, IEditorExtension[] editorExtensions, IDynamicServiceProvider dynamicServiceProvider, IKernel kernel) { _serviceRegistration = serviceRegistration; _editorExtensions = editorExtensions; _dynamicServiceProvider = dynamicServiceProvider; _kernel = kernel; foreach (var ext in _editorExtensions) { ext.RegisterServices(_serviceRegistration); } }
public WindowsMainMenuController(IDynamicServiceProvider dynamicServiceProvider) { _dynamicServiceProvider = dynamicServiceProvider; }
public static void AddTransient <TService, TImplementation>(this IDynamicServiceProvider provider, Func <IServiceProvider, object> implementationFactory) { provider.AddTransient(typeof(TService), typeof(TImplementation), implementationFactory); }
public static void AddTransient(this IDynamicServiceProvider provider, Type implementationType) { provider.AddTransient(implementationType, implementationType); }
public static void AddTransient(this IDynamicServiceProvider provider, Type serviceType, Type implementationType, Func <IServiceProvider, object> implementationFactory) { provider.AddService(serviceType, implementationType, implementationFactory, true, null); }
public static void AddSingleton <TImplementation>(this IDynamicServiceProvider provider, TImplementation implementation) { provider.AddService(typeof(TImplementation), typeof(TImplementation), null, false, implementation); }
public static void AddSingleton(this IDynamicServiceProvider provider, object implementation) { provider.AddService(null, null, null, false, implementation); }
public static void RemoveService <TService>(this IDynamicServiceProvider provider) { provider.RemoveService(typeof(TService)); }
public static void AddSingleton <TImplementation>(this IDynamicServiceProvider provider) { AddSingleton(provider, typeof(TImplementation), typeof(TImplementation)); }
public static void AddSingleton(this IDynamicServiceProvider provider, Type implementationType) { AddSingleton(provider, implementationType, implementationType); }
public static void AddSingleton(this IDynamicServiceProvider provider, Type serviceType, Type implementationType) { provider.AddService(serviceType, implementationType, null, false, null); }
public static void AddSingleton <TImplementation>(this IDynamicServiceProvider provider, Func <IServiceProvider, object> implementationFactory) { AddSingleton(provider, typeof(TImplementation), implementationFactory); }
public static void AddSingleton(this IDynamicServiceProvider provider, Type implementationType, Func <IServiceProvider, object> implementationFactory) { AddSingleton(provider, implementationType, implementationType, implementationFactory); }
public static void AddSingleton(this IDynamicServiceProvider provider, Type serviceType, Type implementationType, Func <IServiceProvider, object> implementationFactory) { provider.AddService(serviceType, implementationType, implementationFactory, false, null); }
public static void AddTransient <TImplementation>(this IDynamicServiceProvider provider) { provider.AddTransient <TImplementation, TImplementation>(); }
public static void AddSingleton <TService, TImplementation>(this IDynamicServiceProvider provider, TImplementation implementation) { AddSingleton(provider, typeof(TService), implementation); }
public ExtensionServiceRegistration(IDynamicServiceProvider dynamicServiceProvider) { _dynamicServiceProvider = dynamicServiceProvider; }
public static void AddTransient <TService, TImplementation>(this IDynamicServiceProvider provider) { provider.AddTransient(typeof(TService), typeof(TImplementation), null); }