Exemplo n.º 1
0
        public EmailVerificationUpdater(IAppStore appStore, IEmailServer emailServer, ISemanticLog log)
        {
            this.appStore    = appStore;
            this.emailServer = emailServer;

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

            this.log = log;
        }
Exemplo n.º 5
0
        public Initializer(IEnumerable <IInitializable> initializables, ISemanticLog log)
        {
            this.initializables = initializables;

            this.log = log;
        }
Exemplo n.º 6
0
 public SiloHost(ISiloHost silo, ISemanticLog log, IApplicationLifetime lifetime)
     : base(lifetime, log)
 {
     this.silo = silo;
 }
Exemplo n.º 7
0
        public static ILoggerFactory AddSemanticLog(this ILoggerFactory factory, ISemanticLog log)
        {
            factory.AddProvider(new SemanticLogLoggerProvider(log));

            return(factory);
        }
Exemplo n.º 8
0
 public SchemaDomainObject(IStore <DomainId> store, ISemanticLog log)
     : base(store, log)
 {
 }
Exemplo n.º 9
0
        public LoggingFilter(ISemanticLog log)
        {
            Guard.NotNull(log, nameof(log));

            this.log = log;
        }
Exemplo n.º 10
0
 protected override Task StartAsync(ISemanticLog log, CancellationToken ct)
 {
     return(rebuildRunner.RunAsync(ct));
 }
Exemplo n.º 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;
        }
Exemplo n.º 12
0
 public RebuilderHost(IApplicationLifetime lifetime, ISemanticLog log, RebuildRunner rebuildRunner)
     : base(lifetime, log)
 {
     this.rebuildRunner = rebuildRunner;
 }
Exemplo n.º 13
0
        public PwnedPasswordValidator(ISemanticLog log)
        {
            Guard.NotNull(log);

            this.log = log;
        }
Exemplo n.º 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;
        }
Exemplo n.º 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
            });
        }
Exemplo n.º 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;
        }
Exemplo n.º 17
0
 public BackgroundHost(ISemanticLog log, IEnumerable <IBackgroundProcess> systems)
     : base(log, systems)
 {
 }
Exemplo n.º 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;
        }
Exemplo n.º 19
0
 protected override async Task StopAsync(ISemanticLog log, CancellationToken ct)
 {
     await silo.StopAsync();
 }
Exemplo n.º 20
0
        protected DomainObjectBase(ISemanticLog log)
        {
            Guard.NotNull(log, nameof(log));

            this.log = log;
        }
Exemplo n.º 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;
        }
Exemplo n.º 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;
        }
Exemplo n.º 23
0
 public LogConfigurationHost(ISemanticLog log, IConfiguration configuration)
     : base(log)
 {
     this.configuration = configuration;
 }
Exemplo n.º 24
0
        public LogCommandMiddleware(ISemanticLog log)
        {
            Guard.NotNull(log, nameof(log));

            this.log = log;
        }
Exemplo n.º 25
0
 public static void LogTrace(this ISemanticLog log, Action <IObjectWriter> objectWriter)
 {
     log.Log(SemanticLogLevel.Trace, objectWriter);
 }
Exemplo n.º 26
0
        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);
        }
Exemplo n.º 27
0
 public static void LogInformation(this ISemanticLog log, Action <IObjectWriter> objectWriter)
 {
     log.Log(SemanticLogLevel.Information, objectWriter);
 }
Exemplo n.º 28
0
 public BackgroundHost(IEnumerable <IBackgroundProcess> targets, ISemanticLog log)
     : base(log)
 {
     this.targets = targets;
 }
Exemplo n.º 29
0
 public static void LogWarning(this ISemanticLog log, Exception exception, Action <IObjectWriter> objectWriter = null)
 {
     log.Log(SemanticLogLevel.Warning, writer => writer.WriteException(exception, objectWriter));
 }
Exemplo n.º 30
0
 public LogCommandMiddleware(ISemanticLog log)
 {
     this.log = log;
 }