public SignatureBuilder(ISigningKeyBuilder keyBuilder, IScopeBuilder scopeBuilder, ILogger <SignatureBuilder> logger, IOptions <S3Config> options) { _keyBuilder = keyBuilder; _scopeBuilder = scopeBuilder; _logger = logger; _options = options; }
public HeaderAuthorizationBuilder(IOptions <SimpleS3Config> options, IScopeBuilder scopeBuilder, ISignatureBuilder signatureBuilder, ILogger <HeaderAuthorizationBuilder> logger) { _config = options.Value; _scopeBuilder = scopeBuilder; _signatureBuilder = signatureBuilder; _logger = logger; }
public AuthorizationHeaderBuilder(IOptions <S3Config> options, IScopeBuilder scopeBuilder, ISignatureBuilder signatureBuilder, ILogger <AuthorizationHeaderBuilder> logger) { _options = options; _scopeBuilder = scopeBuilder; _signatureBuilder = signatureBuilder; _logger = logger; }
public static IScopeBuilder WithXAudio(this IScopeBuilder builder) { return(builder .WithType <XAudioEngine>().AsSelf().AsSingleton() .WithType <DxSoundClip>().As <SoundClip>() .WithType <DxSoundClipInstance>().As <SoundClipInstance>()); }
public static IScopeBuilder WithSkia(this IScopeBuilder builder) { return(builder .WithType <SkiaImage>().As <Image>() .WithType <SkiaCanvas>().As <Canvas>().As <ISkiaCanvas>() .WithType <SkiaVertexBuffer>().As <VertexBuffer>() .WithType <SkiaFont>().As <Font>() .WithType <SkiaFontManager>().As <IFontManager>().AsSingleton() .WithType <SkiaEffectsFactory>().As <IEffectsFactory>().AsSingleton()); }
public DefaultSignedRequestHandler(IOptions <SimpleS3Config> options, IScopeBuilder scopeBuilder, IMarshalFactory marshaller, QueryParameterAuthorizationBuilder authBuilder, IEndpointBuilder endpointBuilder, ILogger <DefaultSignedRequestHandler> logger) { Validator.RequireNotNull(options, nameof(options)); Validator.RequireNotNull(marshaller, nameof(marshaller)); Validator.RequireNotNull(authBuilder, nameof(authBuilder)); Validator.RequireNotNull(logger, nameof(logger)); _config = options.Value; _authBuilder = authBuilder; _endpointBuilder = endpointBuilder; _marshaller = marshaller; _logger = logger; _scopeBuilder = scopeBuilder; }
public DefaultSignedRequestHandler(IOptions <S3Config> options, IScopeBuilder scopeBuilder, IValidatorFactory validator, IMarshalFactory marshaller, QueryParameterAuthorizationBuilder authBuilder, ILogger <DefaultSignedRequestHandler> logger) { Validator.RequireNotNull(options, nameof(options)); Validator.RequireNotNull(validator, nameof(validator)); Validator.RequireNotNull(marshaller, nameof(marshaller)); Validator.RequireNotNull(authBuilder, nameof(authBuilder)); Validator.RequireNotNull(logger, nameof(logger)); validator.ValidateAndThrow(options.Value); _validator = validator; _options = options; _authBuilder = authBuilder; _marshaller = marshaller; _logger = logger; _scopeBuilder = scopeBuilder; }
public SignatureBuilder(ISigningKeyBuilder keyBuilder, IScopeBuilder scopeBuilder, ILogger <SignatureBuilder> logger) { _keyBuilder = keyBuilder; _scopeBuilder = scopeBuilder; _logger = logger; }
protected virtual void InitServices(IServicesProvider systemServices, IScopeBuilder scopeBuilder) { }
public static IScopeBuilder WithCrossTypes(this IScopeBuilder scopeBuilder) { return(scopeBuilder .WithType <NavigationImpl>().As <INavigation>() .WithType <ImageCache>().As <IImageCache>().AsSingleton()); }
public DDNSUpdateInvoker(IScopeBuilder scopeBuilder) { _scopeBuilder = scopeBuilder; }
public void Build(IScopeBuilder <JiraCustomIssue> builder) { builder .Define(x => x.Project, TestMetadata.Project) .Define(x => x.IssueType, TestMetadata.IssueType); }
/// <summary> /// Register an interface based on <see cref="INamedCollectionProvider"/> which will be injected /// with the default scope/collection. /// </summary> /// <typeparam name="T">Interface inherited from <see cref="INamedCollectionProvider"/>. Must not add any members.</typeparam> /// <param name="builder">The scope builder.</param> /// <returns>The <see cref="IScopeBuilder"/> for chaining.</returns> private static IScopeBuilder AddDefaultCollection <T>(this IScopeBuilder builder) where T : class, INamedCollectionProvider => builder.AddCollection <T>("_default");