public IDatabase CreateDatabase(IMetaPopulation metaPopulation, bool init) { var configuration = new Configuration { ObjectFactory = this.CreateObjectFactory(metaPopulation), ConnectionString = ConnectionString }; var database = new Database(configuration); if (init) { database.Init(); } return database; }
public void Define_rule() { var conditions = new[] { Conditions.Equal((Order x) => x.Customer.ContactName, "JOE"), }; var consequences = new[] { Consequences.Delegate((Order o) => _result = o), }; Rule rule = new OdoyuleRule("RuleA", conditions, consequences); _engine = RulesEngineFactory.New(x => x.Add(rule)); }
private static async void DisattivaDispositivo() { List <Configuration.Configuration> configuartionList = await ConfigurationPresentation.GetConfiguration(); if (configuartionList.Count != 0) { Configuration.Configuration configuration = configuartionList[0]; configuration.PrimaryKey = configuration.Token; configuration.Attivo = false; App.Configurazione = configuration; int i = await ConfigurationPresentation.Salva(configuration); Console.WriteLine("Riposta al Salvataggio: " + i); if (i != 0) { } } }
protected override void OnStart() { Task.Run(async() => { List <Configuration.Configuration> configuartionList = await ConfigurationPresentation.GetConfiguration(); if (configuartionList.Count != 0) { Configuration.Configuration configuration = configuartionList[0]; App.Token = configuration.Token; App.Configurazione = configuration; // = //JObject.Parse(configuration.Data); } else { //configurazione = new JSONObject("{\"nome\":\"Stito\"}"); //zConsole.WriteLine("NOME: " + configurazione.Get("nome")); CrossPushNotification.Current.Register(); /*Configuration.Configuration configuration = new Configuration.Configuration(); * configuration.Token = App.Token; * configuration.Data = "{}"; * int a = await ConfigurationPresentation.Salva(configuration);*/ } }); }
public override IDatabase CreateDatabase() { var configuration = new Configuration { ObjectFactory = this.ObjectFactory, ConnectionString = this.ConnectionString }; var database = new Database(configuration); return database; }
public RollbarClient(IOptions <RollbarOptions> rollbarOptions) { Configuration = new Configuration.Configuration(); RollbarOptions = rollbarOptions.Value; }