public UnboundGeneric(Type serviceType, Type type, IRegistrationContext parentContext, RegistrationFactory registrationFactory) { this.serviceType = serviceType; this.Type = type; this.parentContext = parentContext; this.RegistrationFactory = registrationFactory; }
internal RegistrationManager( IRegistrationContext registrationContext, IModuleManager moduleManager, IPublicRegistrationService publicRegistrationService, ISdkInformation sdkInformation, IEnvironmentInformation environmentInformation, IServiceContext serviceContext, ISecureRegistrationService secureRegistrationService, IConfigurationManager configurationManager, IEventBus eventBus, IRefreshToken tokenRefresher, ILogger logger, IJsonSerialiser serialiser) { _registrationContext = registrationContext; _moduleManager = moduleManager; _publicRegistrationService = publicRegistrationService; _sdkInformation = sdkInformation; _environmentInformation = environmentInformation; _serviceContext = serviceContext; _secureRegistrationService = secureRegistrationService; _configurationManager = configurationManager; _eventBus = eventBus; _tokenRefresher = tokenRefresher; _logger = logger; _serialiser = serialiser; }
public SingletonRegistration(IRegistrationContext parentContext, ICreator creator) : base(creator) { this.parentContext = parentContext; this.parentContext.Disposing += (o, e) => { var disposable = this.instance as IDisposable; if (disposable != null) disposable.Dispose(); this.instance = this.instanceExpression = null; this.ClearGenerator(); }; }
public GetAllRegistration(RuntimeTypeHandle typeHandle, IRegistrationContext parentContext, string key) { this.Key = key; this._type = typeHandle; this.parentContext = parentContext; }
public SecureRegistrationService(IRegistrationContext registrationContext, IServiceContext serviceContext, IEnvironmentInformation environmentInformation, ISdkInformation sdkInformation, IHttpClient httpClient, IConfigurationManager configurationManager) : base(registrationContext, serviceContext, environmentInformation, sdkInformation, httpClient, configurationManager) { }
public void TestInitialization() { this.registeredType = typeof(IServiceStub1); this.container = new DependencyResolverContainer(); this.registrationContext = this.container.Registration(); }
// Convenience... protected IRegistration CreateRegistration(IRegistrationContext registrationContext, ICreator creator) { return this.RegistrationFactory(registrationContext, this.ServiceTypes, creator); }
protected CreatorBase(IRegistrationContext parentContext) { this.ParentContext = parentContext; }
/// <summary> /// Initialises a new instance of the <see cref="BuilderUpper"/> class /// </summary> /// <param name="typeHandle">Type of object that the BuilderUpper will work on</param> /// <param name="parentContext">IRegistrationContext on which this BuilderUpper is registered</param> public BuilderUpper(RuntimeTypeHandle typeHandle, IRegistrationContext parentContext) { this.typeHandle = typeHandle; this.parentContext = parentContext; }
private static DbContextOptionsBuilder RunBuilder(IRegistrationContext registrationContext, DbContextOptionsBuilder builder) { return(builder.UseSqlServer(registrationContext.Configuration.GetConnectionString(@"IdentityConnection"))); }
public VerifyRegistrationCommandHandler(IRegistrationContext registrations, IApprenticeContext apprenticeRepository) { _registrations = registrations; _apprentices = apprenticeRepository; }
public override void Register(IRegistrationContext context, ProcessableAttribute attribute, Type typeWithAttribute) { S.R.AddHostedService(typeWithAttribute); }
public FactoryCreator(Func <IRegistrationContext, T> factory, IRegistrationContext parentContext) : base(parentContext) { this.factory = factory; }
public CreateRegistrationCommandHandler(IRegistrationContext registrations) => _registrations = registrations;
private ILifetime ChooseLifeTime(IRegistrationContext registrationContext) => registrationContext.Context.ExistingInstance != null ? registrationContext.Context.IsWireUp ? new SingletonLifetime() : null : registrationContext.Context.Lifetime;
protected abstract void OnRegister(IRegistrationContext context, Customer customer);