Ejemplo n.º 1
0
 public ReportsConfigProvider(IConnectionStringService connectionStringService
                              , IOptions <AppSettings> appSettings
                              )
 {
     _connectionStringService = connectionStringService;
     _appSettings             = appSettings;
 }
Ejemplo n.º 2
0
 public DatabaseConnectionProvider(IConnectionStringService connectionStringService
                                   , IOptions <AppSettings> appSettings
                                   )
 {
     _connectionStringService = connectionStringService;
     _appSettings             = appSettings;
 }
Ejemplo n.º 3
0
 public SessionService(
     IConnectionStringService connectionStringService,
     ISchemaManager schemaManagerService,
     ISchemaTreeBuilder schemaTreeBuilder)
 {
     _connectionStringService = connectionStringService;
     _schemaManagerService    = schemaManagerService;
     _schemaTreeBuilder       = schemaTreeBuilder;
 }
Ejemplo n.º 4
0
        public PocoContext(IConnectionStringService connectionStringService)
        {
            _connectionStringService = connectionStringService;

            Database.SetInitializer<PocoContext>(null);

            //Sets the connection string to the database, to which the objects are generated
            this.Database.Connection.ConnectionString = _connectionStringService.GetConnectionString();
        }
Ejemplo n.º 5
0
        public PocoContext(IConnectionStringService connectionStringService)
        {
            _connectionStringService = connectionStringService;

            Database.SetInitializer <PocoContext>(null);

            //Sets the connection string to the database, to which the objects are generated
            this.Database.Connection.ConnectionString = _connectionStringService.GetConnectionString();
        }
Ejemplo n.º 6
0
        public ConnectToDatabase(IDbConnectService dbConnectService, IConnectionStringService connectionStringService, IDataTypeService dataTypeService)
        {
            InitializeComponent();

            _dbConnectService = dbConnectService;
            _connectionStringService = connectionStringService;
            _dataTypeService = dataTypeService;

            LoadAuthenticationTypes();
        }
Ejemplo n.º 7
0
        public ConnectToDatabase(IDbConnectService dbConnectService, IConnectionStringService connectionStringService, IDataTypeService dataTypeService)
        {
            InitializeComponent();

            _dbConnectService        = dbConnectService;
            _connectionStringService = connectionStringService;
            _dataTypeService         = dataTypeService;

            LoadAuthenticationTypes();
        }
Ejemplo n.º 8
0
        public TableStorageService(IConnectionStringService connectionStringService, IMapper mapper)
        {
            _mapper = mapper;
            _connectionStringService = connectionStringService;

            _cloudStorageAccount = CloudStorageAccount.Parse(_connectionStringService.StorageConnectionString);

            var client = _cloudStorageAccount.CreateCloudTableClient();

            _table = client.GetTableReference(SampleObjectTableName);
        }
Ejemplo n.º 9
0
        static void Main(string[] args)
        {
            var basicHttpBinding = new BasicHttpBinding();
            var endpont          = new EndpointAddress("http://localhost:8080/RoutingService/RoutingService.StoredConnectionStringsService.svc");

            var connectionStringService = new ChannelFactory <IConnectionStringService>(basicHttpBinding, endpont);

            IConnectionStringService client = connectionStringService.CreateChannel();

            ConnectionString connectionString = client.GetConnectionString("RoutingService", "abcd1234", "DefaultConnectionString");

            IClientChannel chanel = (IClientChannel)client;

            chanel.Close();
            chanel.Dispose();

            Console.WriteLine(connectionString);
            Console.ReadKey();
        }
Ejemplo n.º 10
0
        public SettingsFormViewModel(IOrganizationServiceContextGenerator contextGenerator, ICompilerService compilerService, IConnectionStringService connectionStringService, Dispatcher dispatcher)
        {
            CommandGenerateDll        = new RealyAsyncCommand <object>(GenerateDllClicked, CanGenerateDllClicked);
            CommandSelectDll          = new RelayCommand(SelectDllClicked);
            CommandSelectClass        = new RealyAsyncCommand <object>(SelectClassClicked, CanSelectClassClicked);
            CommandConfirmSettings    = new RelayCommand <System.Windows.Window>(ConfirmSettingsClicked, ConfirmSettiingsCanExecute);
            CommandOpenGenerateDllLog = new RelayCommand(OpenGenerateDllLogClicked);
            CommandOpenCompileDllLog  = new RelayCommand(OpenCompileDllLog);
            CommandCancelSettings     = new RelayCommand <System.Windows.Window>(CancelSettingsClicked);
            CommandLoginToCrm         = new RelayCommand(CommandLoginToCrmClicked);

            this.contextGenerator = contextGenerator;

            contextGenerator.OutputDataReceived += (sender, args) =>
            {
                GeneratorOutput.AppendLine(args.Data);
                dispatcher.Invoke(DispatcherPriority.Normal,
                                  new System.Action(() =>
                {
                    RaisePropertyChangedEvent(nameof(GeneratorOutput));
                }
                                                    ));
            };

            contextGenerator.ErrorDataReceived += (sender, args) =>
            {
                GeneratorOutput.AppendLine(args.Data);
                dispatcher.Invoke(DispatcherPriority.Normal,
                                  new System.Action(() =>
                {
                    RaisePropertyChangedEvent(nameof(GeneratorOutput));
                }
                                                    ));
            };

            this.compilerService         = compilerService;
            this.connectionStringService = connectionStringService;
        }
Ejemplo n.º 11
0
 public App( ILogger Logger, 
     IMigrationDbRepository MigrationDbRepository, IMigrationFileRepository MigrationFileRepository, ISqlCmdHelper SqlCmdHelper, IMigrationOutputFileRepository MigrationOutputFileRepository,
     IMigrationFileService MigrationFileService, IConnectionStringService ConnectionStringService, IPathService PathService)
 {
     if ( Logger == null ) {
         throw new ArgumentNullException( "Logger" );
     }
     if ( MigrationDbRepository == null ) {
         throw new ArgumentNullException( "MigrationDbRepository" );
     }
     if ( MigrationFileRepository == null ) {
         throw new ArgumentNullException( "MigrationFileRepository" );
     }
     if ( SqlCmdHelper == null ) {
         throw new ArgumentNullException( "SqlCmdHelper" );
     }
     if ( MigrationOutputFileRepository == null ) {
         throw new ArgumentNullException( "MigrationOutputFileRepository" );
     }
     if ( MigrationFileService == null ) {
         throw new ArgumentNullException( "MigrationFileService" );
     }
     if ( ConnectionStringService == null ) {
         throw new ArgumentNullException( "ConnectionStringService" );
     }
     if ( PathService == null ) {
         throw new ArgumentNullException( "PathService" );
     }
     this.logger = Logger;
     this.migrationDbRepository = MigrationDbRepository;
     this.migrationFileRepository = MigrationFileRepository;
     this.sqlCmdHelper = SqlCmdHelper;
     this.migrationOutputFileRepository = MigrationOutputFileRepository;
     this.migrationFileService = MigrationFileService;
     this.connectionStringService = ConnectionStringService;
     this.pathService = PathService;
 }
 public BlobStorageService(IConnectionStringService connectionStringService)
 {
     _connectionStringService = connectionStringService;
 }
 public ReportsConfigProvider(IConnectionStringService connectionStringService)
 {
     _connectionStringService = connectionStringService;
 }
Ejemplo n.º 14
0
 public CosmosDbService(IConnectionStringService connectionStringService)
 {
     _connectionStringService = connectionStringService;
 }
Ejemplo n.º 15
0
 public ConfigureConnectionStringOptions(IConnectionStringService connectonStringService)
 {
     _connectonStringService = connectonStringService;
 }
 public DatabaseConnectionProvider(IConnectionStringService connectionStringService)
 {
     _connectionStringService = connectionStringService;
 }
 public CMSClientRepository(IConnectionStringService connectionStringService)
 {
     _connectionStringService = connectionStringService;
 }