コード例 #1
0
        public EmailVerificationUpdater(IAppStore appStore, IEmailServer emailServer, ISemanticLog log)
        {
            this.appStore    = appStore;
            this.emailServer = emailServer;

            this.log = log;
        }
コード例 #2
0
 public static void LogDebug(this ISemanticLog log, Action <IObjectWriter> objectWriter)
 {
     log.Log(SemanticLogLevel.Debug, objectWriter);
 }
コード例 #3
0
 public static void LogWarning(this ISemanticLog log, Action <IObjectWriter> objectWriter)
 {
     log.Log(SemanticLogLevel.Warning, objectWriter);
 }
コード例 #4
0
        public StringLogger(string template, ISemanticLog log)
        {
            this.template = template;

            this.log = log;
        }
コード例 #5
0
        public Initializer(IEnumerable <IInitializable> initializables, ISemanticLog log)
        {
            this.initializables = initializables;

            this.log = log;
        }
コード例 #6
0
ファイル: SiloHost.cs プロジェクト: yashodhank/squidex
 public SiloHost(ISiloHost silo, ISemanticLog log, IApplicationLifetime lifetime)
     : base(lifetime, log)
 {
     this.silo = silo;
 }
コード例 #7
0
        public static ILoggerFactory AddSemanticLog(this ILoggerFactory factory, ISemanticLog log)
        {
            factory.AddProvider(new SemanticLogLoggerProvider(log));

            return(factory);
        }
コード例 #8
0
 public SchemaDomainObject(IStore <DomainId> store, ISemanticLog log)
     : base(store, log)
 {
 }
コード例 #9
0
        public LoggingFilter(ISemanticLog log)
        {
            Guard.NotNull(log, nameof(log));

            this.log = log;
        }
コード例 #10
0
 protected override Task StartAsync(ISemanticLog log, CancellationToken ct)
 {
     return(rebuildRunner.RunAsync(ct));
 }
コード例 #11
0
        public InvitationEventConsumer(INotificationSender emailSender, IUserResolver userResolver, ISemanticLog log)
        {
            Guard.NotNull(emailSender, nameof(emailSender));
            Guard.NotNull(userResolver, nameof(userResolver));
            Guard.NotNull(log, nameof(log));

            this.emailSender  = emailSender;
            this.userResolver = userResolver;

            this.log = log;
        }
コード例 #12
0
 public RebuilderHost(IApplicationLifetime lifetime, ISemanticLog log, RebuildRunner rebuildRunner)
     : base(lifetime, log)
 {
     this.rebuildRunner = rebuildRunner;
 }
コード例 #13
0
        public PwnedPasswordValidator(ISemanticLog log)
        {
            Guard.NotNull(log);

            this.log = log;
        }
コード例 #14
0
        public RedisSubscription(ISubscriber subscriber, IJsonSerializer serializer, string channelName, ISemanticLog log)
        {
            this.log = log;

            this.serializer = serializer;
            this.subscriber = subscriber;
            this.subscriber.Subscribe(channelName, (channel, value) => HandleMessage(value));

            this.channelName = channelName;
        }
コード例 #15
0
        public RuleDequeuerGrain(RuleService ruleService, IRuleEventRepository ruleEventRepository, ISemanticLog log, IClock clock)
        {
            Guard.NotNull(ruleEventRepository, nameof(ruleEventRepository));
            Guard.NotNull(ruleService, nameof(ruleService));
            Guard.NotNull(clock, nameof(clock));
            Guard.NotNull(log, nameof(log));

            this.ruleEventRepository = ruleEventRepository;
            this.ruleService         = ruleService;

            this.clock = clock;

            this.log = log;

            requestBlock =
                new PartitionedActionBlock <IRuleEventEntity>(HandleAsync, x => x.Job.ExecutionPartition,
                                                              new ExecutionDataflowBlockOptions {
                MaxDegreeOfParallelism = 32, BoundedCapacity = 32
            });
        }
コード例 #16
0
        public ContentDomainObject(IStore <Guid> store, IContentWorkflow contentWorkflow, ContentOperationContext context, ISemanticLog log)
            : base(store, log)
        {
            Guard.NotNull(context);
            Guard.NotNull(contentWorkflow);

            this.contentWorkflow = contentWorkflow;
            this.context         = context;
        }
コード例 #17
0
 public BackgroundHost(ISemanticLog log, IEnumerable <IBackgroundProcess> systems)
     : base(log, systems)
 {
 }
コード例 #18
0
        public Migrator(IMigrationStatus migrationStatus, IMigrationPath migrationPath, ISemanticLog log)
        {
            Guard.NotNull(migrationStatus, nameof(migrationStatus));
            Guard.NotNull(migrationPath, nameof(migrationPath));
            Guard.NotNull(log, nameof(log));

            this.migrationStatus = migrationStatus;
            this.migrationPath   = migrationPath;

            this.log = log;
        }
コード例 #19
0
ファイル: SiloHost.cs プロジェクト: yashodhank/squidex
 protected override async Task StopAsync(ISemanticLog log, CancellationToken ct)
 {
     await silo.StopAsync();
 }
コード例 #20
0
        protected DomainObjectBase(ISemanticLog log)
        {
            Guard.NotNull(log, nameof(log));

            this.log = log;
        }
コード例 #21
0
        public AssetDomainObject(IStore <Guid> store, ITagService tagService, IAssetQueryService assetQuery, ISemanticLog log)
            : base(store, log)
        {
            Guard.NotNull(tagService, nameof(tagService));
            Guard.NotNull(assetQuery, nameof(assetQuery));

            this.tagService = tagService;

            this.assetQuery = assetQuery;
        }
コード例 #22
0
        public RequestExceptionMiddleware(IActionResultExecutor <ObjectResult> resultWriter, ISemanticLog log)
        {
            Guard.NotNull(resultWriter, nameof(resultWriter));
            Guard.NotNull(log, nameof(log));

            this.resultWriter = resultWriter;

            this.log = log;
        }
コード例 #23
0
 public LogConfigurationHost(ISemanticLog log, IConfiguration configuration)
     : base(log)
 {
     this.configuration = configuration;
 }
コード例 #24
0
ファイル: LogCommandMiddleware.cs プロジェクト: zxbe/squidex
        public LogCommandMiddleware(ISemanticLog log)
        {
            Guard.NotNull(log, nameof(log));

            this.log = log;
        }
コード例 #25
0
 public static void LogTrace(this ISemanticLog log, Action <IObjectWriter> objectWriter)
 {
     log.Log(SemanticLogLevel.Trace, objectWriter);
 }
コード例 #26
0
ファイル: RuleDequeuer.cs プロジェクト: blakecodes/squidex
        public RuleDequeuer(RuleService ruleService, IRuleEventRepository ruleEventRepository, ISemanticLog log, IClock clock)
        {
            Guard.NotNull(ruleEventRepository, nameof(ruleEventRepository));
            Guard.NotNull(ruleService, nameof(ruleService));
            Guard.NotNull(clock, nameof(clock));
            Guard.NotNull(log, nameof(log));

            this.ruleEventRepository = ruleEventRepository;
            this.ruleService         = ruleService;

            this.clock = clock;

            this.log = log;

            requestBlock =
                new PartitionedActionBlock <IRuleEventEntity>(HandleAsync, x => x.Job.AggregateId.GetHashCode(),
                                                              new ExecutionDataflowBlockOptions {
                MaxDegreeOfParallelism = 32, BoundedCapacity = 32
            });

            timer = new CompletionTimer(5000, QueryAsync);
        }
コード例 #27
0
 public static void LogInformation(this ISemanticLog log, Action <IObjectWriter> objectWriter)
 {
     log.Log(SemanticLogLevel.Information, objectWriter);
 }
コード例 #28
0
 public BackgroundHost(IEnumerable <IBackgroundProcess> targets, ISemanticLog log)
     : base(log)
 {
     this.targets = targets;
 }
コード例 #29
0
 public static void LogWarning(this ISemanticLog log, Exception exception, Action <IObjectWriter> objectWriter = null)
 {
     log.Log(SemanticLogLevel.Warning, writer => writer.WriteException(exception, objectWriter));
 }
コード例 #30
0
 public LogCommandMiddleware(ISemanticLog log)
 {
     this.log = log;
 }