public TestPageModule(IGlobalisationProvider globalisationProvider, IDataServiceHostSettings settings) : base("ext/limitsprototype", globalisationProvider) { Get["/testpage"] = args => { return(View["testpage", new TestPageModel(globalisationProvider, Context.CurrentUser, settings, base.SessionTimeoutEnabled)]); }; }
//ISessionFactory _internalFactory; public DataServiceDesignerRepository( IHostConfiguration hostConfiguration, IGlobalisationProvider globalisationProvider, IAuthorisation authorisation, IMetadataProvider metadataProvider) : base( hostConfiguration, globalisationProvider, authorisation, new List <string>(), metadataProvider, Constants.DataServiceName, Constants.DataServiceSchema) { }
public BCRRepository( IHostConfiguration hostConfiguration, IGlobalisationProvider globalisationProvider, IAuthorisation authorisation, IMetadataProvider metadataProvider) : base( hostConfiguration, globalisationProvider, authorisation, new List <string>(), metadataProvider, "bcr", // the name of the data service "dbo") // the default database schema the tables for the domain objects are in { }
public SchemaBrowserDataService( IEnumerable <IRecordType> recordTypes, IGlobalisationProvider globalisationProvider, IAuthorisation authorisation, IMetadataProvider metadataProvider, ISchemaBrowserRepository repository) : base( Constants.DataServiceName, globalisationProvider, repository as InMemoryDataServiceRepository, recordTypes, authorisation, metadataProvider) { ValidatorOptions.CascadeMode = CascadeMode.StopOnFirstFailure; }
public ActionProcessingDataServiceRepository( IHostConfiguration hostConfiguration, IGlobalisationProvider globalisationProvider, IAuthorisation authorisation, IMetadataProvider metadataProvider, IRegisteredQueryManager registeredQueryManager) : base(hostConfiguration, globalisationProvider, authorisation, new List <string>(), metadataProvider, ActionProcessingDataServiceConstants.DataServiceName, ActionProcessingDataServiceConstants.SchemaName, registeredQueryManager: registeredQueryManager) { }
public ActionProcessingDataService( IHostConfiguration hostConfiguration, IEnumerable <IRecordType> recordTypes, IGlobalisationProvider globalisationProvider, IAuthorisation authorisation, IMetadataProvider metadataProvider, IActionProcessingDataServiceRepository actionProcessingDataServiceRepository, IDatabaseStreamingQueryExecutor databaseStreamingQueryExecutor) : base(ActionProcessingDataServiceConstants.DataServiceName, globalisationProvider, actionProcessingDataServiceRepository as DatabaseDataServiceRepository, recordTypes, metadataProvider, databaseStreamingQueryExecutor) { }
public DataServiceDesignerDataService( IHostConfiguration hostConfiguration, IEnumerable <IRecordType> recordTypes, IGlobalisationProvider globalisationProvider, IAuthorisation authorisation, IMetadataProvider metadataProvider, IDataServiceDesignerRepository repository, IDatabaseStreamingQueryExecutor databaseStreamingQueryExecutor) : base( Constants.DataServiceName, globalisationProvider, repository as DatabaseDataServiceRepository, recordTypes, metadataProvider, databaseStreamingQueryExecutor) { ValidatorOptions.CascadeMode = CascadeMode.StopOnFirstFailure; }
public BCRDataService( IHostConfiguration hostConfiguration, IEnumerable <IRecordType> recordTypes, IGlobalisationProvider globalisationProvider, IAuthorisation authorisation, IMetadataProvider metadataProvider, IBCRRepository ibcrRepository, IDatabaseStreamingQueryExecutor databaseStreamingQueryExecutor) : base( "bcr", // the name of the data service globalisationProvider, ibcrRepository as DatabaseDataServiceRepository, recordTypes, metadataProvider, databaseStreamingQueryExecutor) { ValidatorOptions.CascadeMode = CascadeMode.StopOnFirstFailure; }
public ApiModule(IAuthentication authentication, IGlobalisationProvider globalisationProvider, ISchemaBrowserRepository repository) : base("api/schemabrowser/ext", globalisationProvider) { _authentication = authentication; _repository = repository; _utils = new SchemaBrowserUtils(); Get[@"/TestConnection/{databaseType}"] = args => { string databaseType = args.databaseType; DatabaseType dbType = databaseType.FromDatabaseValue <DatabaseType>(); string connectionString = Request.Query["cs"]; //can't get this to work via normal parameter as it's encoded string message = string.Empty; _utils.TestConnection(dbType, connectionString, out message); return(Response.AsJson(message)); }; }
public TradeDataService(ITradeDataServiceSettings settings, ITradeDataServiceRepository repository, IHostConfiguration hostConfiguration, IEnumerable <IRecordType> recordTypes, IAuthorisation authorisation, IGlobalisationProvider globalisationProvider, IMetadataProvider metadataProvider, string databaseType = null, string connectionString = null) : base(settings.DataServiceName, globalisationProvider, repository as DatabaseDataServiceRepository, recordTypes, metadataProvider) { ValidatorOptions.CascadeMode = CascadeMode.StopOnFirstFailure; }
public ProvisionalContractDataService(IProvisionalContractDataServiceRepository repository, IDataServiceHostSettings hostSettings, IEnumerable <IRecordType> recordTypes, IAuthorisation authorisation, IGlobalisationProvider globalisationProvider, IMetadataProvider metadataProvider, IDatabaseStreamingQueryExecutor streamingQueryExecutor) : base(Constants.DataServiceName, globalisationProvider, repository as DatabaseDataServiceRepository, recordTypes, metadataProvider, streamingQueryExecutor) { _hostSettings = hostSettings; _hostUrl = hostSettings.HostUrl; ValidatorOptions.CascadeMode = CascadeMode.StopOnFirstFailure; }
public LimitsModel(IGlobalisationProvider globalisationProvider, IUserIdentity userIdentity, IDataServiceHostSettings settings, bool sessionTimeoutEnabled) : base(globalisationProvider, userIdentity as UserIdentity) { this.SessionTimeoutEnabled = sessionTimeoutEnabled; }
public LimitsModule(string moduleUrl, IGlobalisationProvider globalisationProvider) : base(moduleUrl, globalisationProvider) { this.SessionTimeoutEnabled = true; }
public TestPageModel(IGlobalisationProvider globalisationProvider, IUserIdentity userIdentity, IDataServiceHostSettings settings, bool sessionTimeoutEnabled) : base(globalisationProvider, userIdentity, settings, sessionTimeoutEnabled) { Message = "Test Page"; }
//private string _databaseType; public TradeDatabaseDataServiceRepository(ITradeDataServiceSettings settings, IHostConfiguration hostConfiguration, IGlobalisationProvider globalisation, IAuthorisation authorisation, IMetadataProvider metadataProvider, string databaseType = null, string connectionString = null) : base(hostConfiguration, globalisation, authorisation, new List <string>(), metadataProvider, settings.DataServiceName, settings.DefaultSchema, databaseType, connectionString) { }
public ProvisionalContractDataServiceRepository(IHostConfiguration hostConfiguration, IGlobalisationProvider globalisation, IAuthorisation authorisation, IMetadataProvider metadataProvider, string databaseType = null, string connectionString = null) : base(hostConfiguration, globalisation, authorisation, new List <string>(), metadataProvider, Constants.DataServiceName, Constants.DefaultDatabaseSchema, databaseType, connectionString) { }