public NodeHeartbeatAppService(IMessageAppService messageAppService, ApplicationDbContext dbcontext, ICommonConfiguration configuration, IAppSession appSession, UserManager <ApplicationUser> userManager) : base(dbcontext, configuration, appSession, userManager) { _messageAppService = messageAppService; }
public PipelineAppService(ApplicationDbContext dbcontext, ICommonConfiguration configuration, IAppSession appSession, UserManager <ApplicationUser> userManager, ILoggerFactory loggerFactory) : base(dbcontext, configuration, appSession, userManager, loggerFactory) { var des = DES.Create(); _cryptoTransform = des.CreateDecryptor(configuration.SqlEncryptKey, configuration.SqlEncryptKey); }
protected static void ConfigureCommon(ICommonConfiguration config) { config.Queries.EvaluationMode(QueryEvaluationMode.Lazy); config.ActivationDepth = 1; config.AllowVersionUpdates = true; config.Add(new JavaSupport()); }
public NodeAppService(ApplicationDbContext dbcontext, IMessageAppService messageAppService, ICommonConfiguration configuration, UserManager <ApplicationUser> userManager) : base(dbcontext, configuration, userManager) { _messageAppService = messageAppService; }
private void PrepareCommon(ICommonConfiguration commonConfig, IList classesNotFound ) { commonConfig.ReflectWith(Platform4.ReflectorForType(typeof (Pilot ))); PrepareDiagnostic(commonConfig, classesNotFound); }
private void PrepareCommon(ICommonConfiguration commonConfig, IList classesNotFound ) { commonConfig.ReflectWith(Platform4.ReflectorForType(typeof(MissingClassDiagnosticsTestCase.Pilot ))); PrepareDiagnostic(commonConfig, classesNotFound); }
public NodeAppService(ApplicationDbContext dbcontext, IMessageAppService messageAppService, ICommonConfiguration configuration, IAppSession appSession, UserManager <ApplicationUser> userManager, ILoggerFactory loggerFactory) : base(dbcontext, configuration, appSession, userManager, loggerFactory) { _messageAppService = messageAppService; }
protected override void ConfigureType(ICommonConfiguration configuration, Type type) { var clazz = configuration.ObjectClass(type); clazz.MaximumActivationDepth(15); clazz.UpdateDepth(1); if (Reflector.Implements(type, typeof(IThing)) || Reflector.Implements(type, typeof(IIdContent <Id>))) { clazz.ObjectField("_id").Indexed(true); // the following makes errors on closing (sometimes): see Gateway.Close(); this.Flush(); // Configuration.Add(new UniqueFieldValueConstraint(type, "_id")); } if (Reflector.Implements(type, typeof(ILink))) { clazz.UpdateDepth(1); clazz.ObjectField(RootIdField).Indexed(true); clazz.ObjectField(LeafIdField).Indexed(true); clazz.ObjectField("_markerId").Indexed(true); } else { FieldInfo fieldType = type.GetField("_data", BindingFlags.Instance | BindingFlags.NonPublic); if (fieldType != null && !Reflector.IsStorable(fieldType.FieldType)) { clazz.ObjectField("_data").Indexed(true); } } }
public SchedulerAppService(ApplicationDbContext dbcontext, ICommonConfiguration configuration, IAppSession appSession, UserManager <ApplicationUser> userManager, ILoggerFactory loggerFactory) : base(dbcontext, configuration, appSession, userManager, loggerFactory) { _retryPolicy = Policy.Handle <Exception>().Retry(5, (ex, count) => { Logger.LogError($"Request scheduler.net failed [{count}]: {ex}"); }); }
/// <exception cref="System.Exception"></exception> protected override void Configure(IConfiguration legacy) { base.Configure(legacy); ICommonConfiguration common = Db4oLegacyConfigurationBridge.AsCommonConfiguration (legacy); common.Environment.Add(_service); }
public SystemAppService(INodeAppService nodeAppService, IMessageAppService messageAppService, ISchedulerAppService schedulerAppService, ApplicationDbContext dbcontext, ICommonConfiguration configuration, IAppSession appSession, UserManager <ApplicationUser> userManager, ILoggerFactory loggerFactory) : base(dbcontext, configuration, appSession, userManager, loggerFactory) { _schedulerAppService = schedulerAppService; _nodeAppService = nodeAppService; _messageAppService = messageAppService; }
protected AppServiceBase(ApplicationDbContext dbcontext, ICommonConfiguration configuration, UserManager <ApplicationUser> userManager) { DbContext = dbcontext; Configuration = configuration; UserManager = userManager; Logger = Log.ForContext(GetType()); }
public SchedulerAppService(ApplicationDbContext dbcontext, ICommonConfiguration configuration, UserManager <ApplicationUser> userManager, IHttpClientFactory httpClientFactory) : base(dbcontext, configuration, userManager) { _httpClientFactory = httpClientFactory; _retryPolicy = Policy.Handle <Exception>().Retry(5, (ex, count) => { Logger.Error($"Request scheduler.net failed [{count}]: {ex}"); }); }
protected AppServiceBase(ApplicationDbContext dbcontext, ICommonConfiguration configuration, IAppSession appSession, UserManager <ApplicationUser> userManager, ILoggerFactory loggerFactory) { DbContext = dbcontext; Configuration = configuration; UserManager = userManager; Session = appSession; Logger = loggerFactory.CreateLogger(GetType()); }
/// <summary> /// Gets the config from attributes. /// </summary> /// <param name="commonConfig">The common config.</param> /// <param name="entityTypes">The entity types.</param> public static void GetConfigFromAttributes(ICommonConfiguration commonConfig, Collection <Type> entityTypes) { if (entityTypes == null || entityTypes.Count == 0) { return; } if (commonConfig == null) { return; } commonConfig.MarkTransient(typeof(TransientFieldAttribute).FullName); foreach (var entityType in entityTypes) { var objectClass = commonConfig.ObjectClass(entityType); var uuidAttrib = entityType.GetAttribute <UuidClassAttribute>(); if (uuidAttrib != null) { objectClass.GenerateUUIDs(true); } var versionAttrib = entityType.GetAttribute <VersionNumberClassAttribute>(); if (versionAttrib != null) { objectClass.GenerateVersionNumbers(true); } var fields = entityType.GetFields(BindingFlags.NonPublic | BindingFlags.Instance) .Where(prop => prop.GetCustomAttributes(typeof(IndexedFieldAttribute), false).Length > 0 || prop.GetCustomAttributes(typeof(UniqueFieldValueConstraintAttribute), false).Length > 0 ).ToList(); if (fields.Count == 0) { continue; } foreach (var field in from field in fields let indexAttrib = field.GetAttribute <IndexedFieldAttribute>() where indexAttrib != null select field) { objectClass.ObjectField(field.Name).Indexed(true); //No UniqueFieldValue WithOut Indexed var uniqueAttrib = field.GetAttribute <UniqueFieldValueConstraintAttribute>(); if (uniqueAttrib != null) { commonConfig.Add(new UniqueFieldValueConstraint(entityType, field.Name)); } } } }
public AccountController( UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IAppSession appSession, ILoggerFactory loggerFactory, ICommonConfiguration commonConfiguration) : base(appSession, loggerFactory, commonConfiguration) { _userManager = userManager; _signInManager = signInManager; }
private void SetCommonConfiguration(ICommonConfiguration configuration, bool weakReferences) { ConfigGenerator.GetConfigFromAttributes(configuration, _entitityTypes. Select(kv => kv.Key).ToList()); configuration.ActivationDepth = 0; configuration.StringEncoding = StringEncodings.Unicode(); configuration.WeakReferences = weakReferences; configuration.WeakReferenceCollectionInterval = 1000; }
public TaskAppService(ISchedulerAppService schedulerAppService, ISystemAppService systemAppService, ITaskHistoryAppService taskHistoryAppService, IMessageAppService messageAppService, INodeAppService nodeAppService, ICommonConfiguration configuration, UserManager <ApplicationUser> userManager, ApplicationDbContext dbcontext) : base(dbcontext, configuration, userManager) { _schedulerAppService = schedulerAppService; _systemAppService = systemAppService; _taskHistoryAppService = taskHistoryAppService; _messageAppService = messageAppService; _nodeAppService = nodeAppService; }
public TaskAppService(ISchedulerAppService schedulerAppService, ISystemAppService systemAppService, ITaskHistoryAppService taskHistoryAppService, IMessageAppService messageAppService, INodeAppService nodeAppService, ICommonConfiguration configuration, IAppSession appSession, UserManager <Domain.Entities.ApplicationUser> userManager, ApplicationDbContext dbcontext, ILoggerFactory loggerFactory) : base(dbcontext, configuration, appSession, userManager, loggerFactory) { _schedulerAppService = schedulerAppService; _systemAppService = systemAppService; _taskHistoryAppService = taskHistoryAppService; _messageAppService = messageAppService; _nodeAppService = nodeAppService; }
public ModuleViewModel(string displayName, ICommonConfiguration commonConfiguration) { _commonConfiguration = commonConfiguration; DisplayName = displayName; AutoApplyParameterSharedState = commonConfiguration.AutoApplyParameterSharedState; AutoShareParameterSharedState = commonConfiguration.AutoShareParameterSharedState; AutoApplyElementSharedState = commonConfiguration.AutoApplyElementSharedState; AutoShareElementSharedState = commonConfiguration.AutoShareElementSharedState; AutoApplyObservationsSharedState = commonConfiguration.AutoApplyObservationsSharedState; AutoShareObservationsSharedState = commonConfiguration.AutoShareObservationsSharedState; }
protected override bool RefactorType(ICommonConfiguration configuration, Type type) { var result = false; var clazz = configuration.ObjectClass(type); if (Reflector.Implements(type, typeof(IThing))) { var writeDate = clazz.ObjectField("_writeDate"); var changeDate = clazz.ObjectField("_changeDate"); if (writeDate != null) { writeDate.Rename("_changeDate"); result = true; } } return(result); }
public Startup( Session session, IIOConfiguration ioConfig, ICommonConfiguration commonConfig, IInput input, IOutput output, IDataRepository dataRepo, ILogger logger, IPrefix prefix, IKernel serviceProvider) { _session = session; _ioConfig = ioConfig; _prefix = prefix; _logger = logger; _dataRepo = dataRepo; _output = output; _input = input; _commonConfig = commonConfig; _serviceProvider = serviceProvider; }
protected static void ConfigureCommon(ICommonConfiguration config) { config.Queries.EvaluationMode(QueryEvaluationMode.Lazy); config.ActivationDepth = 1; config.AllowVersionUpdates = true ; config.Add(new JavaSupport()); }
public HttpGlobalExceptionFilter(ILogger <HttpGlobalExceptionFilter> logger, ICommonConfiguration commonConfiguration) { _logger = logger; _commonConfiguration = commonConfiguration; }
private void ExcludeClasses(ICommonConfiguration commonConfiguration, Type[] classes ) { commonConfiguration.ReflectWith(new ExcludingReflector(ByRef.NewInstance(typeof (Pilot )), classes)); }
public UserAppService(ApplicationDbContext dbcontext, ICommonConfiguration configuration, IAppSession appSession, UserManager <ApplicationUser> userManager) : base(dbcontext, configuration, appSession, userManager) { }
private void PrepareDiagnostic(ICommonConfiguration common, IList classesNotFound ) { common.Diagnostic.AddListener(new _IDiagnosticListener_94(classesNotFound)); }
private void PrepareHost(IFileConfiguration fileConfig, ICommonConfiguration commonConfig , IList classesNotFound) { fileConfig.Storage = _storage; PrepareCommon(commonConfig, classesNotFound); }
public TaskHistoryController(ITaskHistoryAppService taskHistoryAppService, IAppSession appSession, ILoggerFactory loggerFactory, ICommonConfiguration commonConfiguration) : base(appSession, loggerFactory, commonConfiguration) { _taskHistoryAppService = taskHistoryAppService; }
public TaskLogController(ITaskLogAppService logAppService, IAppSession appSession, ILoggerFactory loggerFactory, ICommonConfiguration commonConfiguration) : base(appSession, loggerFactory, commonConfiguration) { _logAppService = logAppService; }
public TaskStatusController(IAppSession appSession, ILoggerFactory loggerFactory, ICommonConfiguration commonConfiguration) : base(appSession, loggerFactory, commonConfiguration) { }
protected virtual void ConfigureAliases(ICommonConfiguration configuration) { configuration.MarkTransient(typeof(Limaki.Common.TransientAttribute).FullName); }
public TaskLogAppService(ApplicationDbContext dbcontext, ICommonConfiguration configuration, IAppSession appSession, UserManager <ApplicationUser> userManager, ILoggerFactory loggerFactory) : base(dbcontext, configuration, appSession, userManager, loggerFactory) { }
private void ExcludeClasses(ICommonConfiguration commonConfiguration, Type[] classes ) { commonConfiguration.ReflectWith(new ExcludingReflector(ByRef.NewInstance(typeof(MissingClassDiagnosticsTestCase.Pilot )), classes)); }
public TaskLogController(ICommonConfiguration commonConfiguration) : base(commonConfiguration) { }
public _ICodeBlock_17(ICommonConfiguration config) { this.config = config; }