コード例 #1
0
ファイル: TestPageModule.cs プロジェクト: darrenferne/stuff
 public TestPageModule(IGlobalisationProvider globalisationProvider, IDataServiceHostSettings settings)
     : base("ext/limitsprototype", globalisationProvider)
 {
     Get["/testpage"] = args =>
     {
         return(View["testpage", new TestPageModel(globalisationProvider, Context.CurrentUser, settings, base.SessionTimeoutEnabled)]);
     };
 }
コード例 #2
0
 //ISessionFactory _internalFactory;
 public DataServiceDesignerRepository(
     IHostConfiguration hostConfiguration,
     IGlobalisationProvider globalisationProvider,
     IAuthorisation authorisation,
     IMetadataProvider metadataProvider)
     : base(
         hostConfiguration,
         globalisationProvider,
         authorisation,
         new List <string>(),
         metadataProvider,
         Constants.DataServiceName,
         Constants.DataServiceSchema)
 {
 }
コード例 #3
0
ファイル: BCRRepository.cs プロジェクト: RajendraIyga/PWork
 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
 {
 }
コード例 #4
0
 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;
 }
コード例 #5
0
 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)
 {
 }
コード例 #6
0
 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)
 {
 }
コード例 #7
0
 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;
 }
コード例 #8
0
 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;
 }
コード例 #9
0
ファイル: ApiModule.cs プロジェクト: darrenferne/stuff
        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));
            };
        }
コード例 #10
0
ファイル: TradeDataService.cs プロジェクト: darrenferne/stuff
 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;
 }
コード例 #11
0
        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;
        }
コード例 #12
0
ファイル: LimitsModel.cs プロジェクト: darrenferne/stuff
 public LimitsModel(IGlobalisationProvider globalisationProvider, IUserIdentity userIdentity, IDataServiceHostSettings settings, bool sessionTimeoutEnabled)
     : base(globalisationProvider, userIdentity as UserIdentity)
 {
     this.SessionTimeoutEnabled = sessionTimeoutEnabled;
 }
コード例 #13
0
ファイル: LimitsModule.cs プロジェクト: darrenferne/stuff
 public LimitsModule(string moduleUrl, IGlobalisationProvider globalisationProvider)
     : base(moduleUrl, globalisationProvider)
 {
     this.SessionTimeoutEnabled = true;
 }
コード例 #14
0
ファイル: TestPageModel.cs プロジェクト: darrenferne/stuff
 public TestPageModel(IGlobalisationProvider globalisationProvider, IUserIdentity userIdentity, IDataServiceHostSettings settings, bool sessionTimeoutEnabled)
     : base(globalisationProvider, userIdentity, settings, sessionTimeoutEnabled)
 {
     Message = "Test Page";
 }
コード例 #15
0
        //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)
        {
        }
コード例 #16
0
 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)
 {
 }