Пример #1
0
		public ReportingProvider(ISymmetricEncryptionProvider symmetricEncryptionProvider,
			IObjectSerializationProvider objectSerializationProvider, IAsymmetricEncryptionProvider asymmetricEncryptionProvider)
		{
			_symmetricEncryptionProvider = symmetricEncryptionProvider;
			_objectSerializationProvider = objectSerializationProvider;
			_asymmetricEncryptionProvider = asymmetricEncryptionProvider;
		}
		public LicenseActiviationProvider(IAsymmetricEncryptionProvider asymmetricEncryptionProvider, ISymmetricEncryptionProvider symmetricEncryptionProvider,
			IObjectSerializationProvider objectSerializationProvider)
		{
			_asymmetricEncryptionProvider = asymmetricEncryptionProvider;
			_objectSerializationProvider = objectSerializationProvider;
			_symmetricEncryptionProvider = symmetricEncryptionProvider;
		}
Пример #3
0
 public ReportingProvider(ISymmetricEncryptionProvider symmetricEncryptionProvider,
                          IObjectSerializationProvider objectSerializationProvider, IAsymmetricEncryptionProvider asymmetricEncryptionProvider)
 {
     _symmetricEncryptionProvider  = symmetricEncryptionProvider;
     _objectSerializationProvider  = objectSerializationProvider;
     _asymmetricEncryptionProvider = asymmetricEncryptionProvider;
 }
 public LicenseActiviationProvider(IAsymmetricEncryptionProvider asymmetricEncryptionProvider, ISymmetricEncryptionProvider symmetricEncryptionProvider,
                                   IObjectSerializationProvider objectSerializationProvider)
 {
     _asymmetricEncryptionProvider = asymmetricEncryptionProvider;
     _objectSerializationProvider  = objectSerializationProvider;
     _symmetricEncryptionProvider  = symmetricEncryptionProvider;
 }
Пример #5
0
        public ServiceStatusProvider(ISymmetricEncryptionProvider symmetricEncryptionProvider,
			IObjectSerializationProvider objectSerializationProvider, IAsymmetricEncryptionProvider asymmetricEncryptionProvider)
        {
            _symmetricEncryptionProvider = symmetricEncryptionProvider;
            _objectSerializationProvider = objectSerializationProvider;
            _asymmetricEncryptionProvider = asymmetricEncryptionProvider;
        }
Пример #6
0
 public ServiceStatusProvider(ISymmetricEncryptionProvider symmetricEncryptionProvider,
                              IObjectSerializationProvider objectSerializationProvider, IAsymmetricEncryptionProvider asymmetricEncryptionProvider)
 {
     _symmetricEncryptionProvider  = symmetricEncryptionProvider;
     _objectSerializationProvider  = objectSerializationProvider;
     _asymmetricEncryptionProvider = asymmetricEncryptionProvider;
 }
Пример #7
0
		public ProductsService(IObjectSerializationProvider serializationProvider, IControlService controlService,
			IProductManagementService productManagementService, IKeyManagementService keyManagementService)
		{
			_serializationProvider = serializationProvider;
			_controlService = controlService;
			_productManagementService = productManagementService;
			_keyManagementService = keyManagementService;
		}
Пример #8
0
        public StatusService(IObjectSerializationProvider serializationProvider, IControlService controlService,
			IProductManagementService productManagementService, IMasterService masterService)
        {
            _serializationProvider = serializationProvider;
            _controlService = controlService;
            _productManagementService = productManagementService;
            _masterService = masterService;
        }
Пример #9
0
 public ProductsService(IObjectSerializationProvider serializationProvider, IControlService controlService,
                        IProductManagementService productManagementService, IKeyManagementService keyManagementService)
 {
     _serializationProvider    = serializationProvider;
     _controlService           = controlService;
     _productManagementService = productManagementService;
     _keyManagementService     = keyManagementService;
 }
Пример #10
0
        public SystemRepository(IObjectSerializationProvider objectSerializationProvider, ISymmetricEncryptionProvider encryptionProvider)
        {
            _objectSerializationProvider = objectSerializationProvider;
            _encryptionProvider = encryptionProvider;

            _path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase);
            _path = _path.Replace("file:\\", "");
        }
Пример #11
0
        public SystemRepository(IObjectSerializationProvider objectSerializationProvider, ISymmetricEncryptionProvider encryptionProvider)
        {
            _objectSerializationProvider = objectSerializationProvider;
            _encryptionProvider          = encryptionProvider;

            _path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase);
            _path = _path.Replace("file:\\", "");
        }
Пример #12
0
 public StatusService(IObjectSerializationProvider serializationProvider, IControlService controlService,
                      IProductManagementService productManagementService, IMasterService masterService, ICommonService commonService)
 {
     _serializationProvider    = serializationProvider;
     _controlService           = controlService;
     _productManagementService = productManagementService;
     _masterService            = masterService;
     _commonService            = commonService;
 }
Пример #13
0
 public ReportingService(IObjectSerializationProvider serializationProvider, IControlService controlService,
                         IProductManagementService productManagementService, IMasterService masterService, IActivationLogService activationLogService, IKeyManagementService keyManagementService)
 {
     _serializationProvider    = serializationProvider;
     _controlService           = controlService;
     _productManagementService = productManagementService;
     _masterService            = masterService;
     _activationLogService     = activationLogService;
     _keyManagementService     = keyManagementService;
 }
Пример #14
0
		public ReportingService(IObjectSerializationProvider serializationProvider, IControlService controlService,
			IProductManagementService productManagementService, IMasterService masterService, IActivationLogService activationLogService, IKeyManagementService keyManagementService)
		{
			_serializationProvider = serializationProvider;
			_controlService = controlService;
			_productManagementService = productManagementService;
			_masterService = masterService;
			_activationLogService = activationLogService;
			_keyManagementService = keyManagementService;
		}
Пример #15
0
 public ControlService(ISymmetricEncryptionProvider symmetricEncryptionProvider, IKeyPairService keyPairService,
                       IPackingService packingService, IMasterService masterService, IObjectSerializationProvider objectSerializationProvider,
                       IAsymmetricEncryptionProvider asymmetricEncryptionProvider)
 {
     _symmetricEncryptionProvider = symmetricEncryptionProvider;
     _packingService = packingService;
     _masterService  = masterService;
     _keyPairService = keyPairService;
     _objectSerializationProvider  = objectSerializationProvider;
     _asymmetricEncryptionProvider = asymmetricEncryptionProvider;
 }
Пример #16
0
        public ActivationService(IControlService controlService, IKeyManagementService keyService, IKeyPairService keyPairService,
			IObjectSerializationProvider serializationProvider, IAsymmetricEncryptionProvider asymmetricEncryptionProvider,
			IActivationLogService activationLogService, IMasterService masterService)
        {
            _controlService = controlService;
            _keyService = keyService;
            _keyPairService = keyPairService;
            _serializationProvider = serializationProvider;
            _asymmetricEncryptionProvider = asymmetricEncryptionProvider;
            _activationLogService = activationLogService;
            _masterService = masterService;
        }
        public DatabaseProjectRepository(IObjectSerializationProvider objectSerializationProvider, ISymmetricEncryptionProvider encryptionProvider)
        {
            this.objectSerializationProvider = objectSerializationProvider;
            this.encryptionProvider = encryptionProvider;

            encryptionInfo = new EncryptionInfo();
            encryptionInfo.KeySize = 256;
            encryptionInfo.HashAlgorithm = Resources.EncryptionHashValue;
            encryptionInfo.PassPhrase = Resources.EncryptionPassPhrase;
            encryptionInfo.SaltValue = Resources.EncryptionSaltValue;
            encryptionInfo.Iterations = 5;
            encryptionInfo.InitVector = Resources.EncryptionInitVector;
        }
Пример #18
0
        static void Main(string[] args)
        {
            ReadTables();

            //TestSqlTableNameFinder();

            Console.WriteLine("Press enter to exit.");
            Console.ReadLine();

            IObjectSerializationProvider objectSerializationProvider = ObjectLocator.GetInstance <IObjectSerializationProvider>();
            ISymmetricEncryptionProvider symmetricEncryptionProvider = ObjectLocator.GetInstance <ISymmetricEncryptionProvider>();
            IDatabaseProjectRepository   databaseProjectRepository   = ObjectLocator.GetInstance <IDatabaseProjectRepository>();
        }
Пример #19
0
        public DatabaseProjectRepository(IObjectSerializationProvider objectSerializationProvider, ISymmetricEncryptionProvider encryptionProvider)
        {
            this.objectSerializationProvider = objectSerializationProvider;
            this.encryptionProvider          = encryptionProvider;

            encryptionInfo               = new EncryptionInfo();
            encryptionInfo.KeySize       = 256;
            encryptionInfo.HashAlgorithm = Resources.EncryptionHashValue;
            encryptionInfo.PassPhrase    = Resources.EncryptionPassPhrase;
            encryptionInfo.SaltValue     = Resources.EncryptionSaltValue;
            encryptionInfo.Iterations    = 5;
            encryptionInfo.InitVector    = Resources.EncryptionInitVector;
        }
Пример #20
0
 public ActivationService(IControlService controlService, IKeyManagementService keyService, IKeyPairService keyPairService,
                          IObjectSerializationProvider serializationProvider, IAsymmetricEncryptionProvider asymmetricEncryptionProvider,
                          IActivationLogService activationLogService, IMasterService masterService, ICommonService commonService, IProductManagementService productManagementService)
 {
     _controlService               = controlService;
     _keyService                   = keyService;
     _keyPairService               = keyPairService;
     _serializationProvider        = serializationProvider;
     _asymmetricEncryptionProvider = asymmetricEncryptionProvider;
     _activationLogService         = activationLogService;
     _masterService                = masterService;
     _commonService                = commonService;
     _productManagementService     = productManagementService;
 }
Пример #21
0
		public ClientLicenseRepository(IObjectSerializationProvider objectSerializationProvider, ISymmetricEncryptionProvider encryptionProvider)
		{
			this.objectSerializationProvider = objectSerializationProvider;
			this.encryptionProvider = encryptionProvider;

			path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase);
			path = path.Replace("file:\\", "");

			encryptionInfo = new EncryptionInfo();
			encryptionInfo.KeySize = 256;
			encryptionInfo.HashAlgorithm = Resources.EncryptionHashValue;
			encryptionInfo.PassPhrase = Resources.EncryptionPassPhrase;
			encryptionInfo.SaltValue = Resources.EncryptionSaltValue;
			encryptionInfo.Iterations = 5;
			encryptionInfo.InitVector = Resources.EncryptionInitVector;
		}
Пример #22
0
        public ClientLicenseRepository(IObjectSerializationProvider objectSerializationProvider, ISymmetricEncryptionProvider encryptionProvider)
        {
            this.objectSerializationProvider = objectSerializationProvider;
            this.encryptionProvider          = encryptionProvider;

            path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase);
            path = path.Replace("file:\\", "");

            encryptionInfo               = new EncryptionInfo();
            encryptionInfo.KeySize       = 256;
            encryptionInfo.HashAlgorithm = Resources.EncryptionHashValue;
            encryptionInfo.PassPhrase    = Resources.EncryptionPassPhrase;
            encryptionInfo.SaltValue     = Resources.EncryptionSaltValue;
            encryptionInfo.Iterations    = 5;
            encryptionInfo.InitVector    = Resources.EncryptionInitVector;
        }
Пример #23
0
        public static void SerializeMasterServiceData()
        {
            ICommonRepository            commonRepository            = ObjectLocator.GetInstance <ICommonRepository>();
            IObjectSerializationProvider objectSerializationProvider = ObjectLocator.GetInstance <IObjectSerializationProvider>();

            MasterServiceData service           = commonRepository.GetMasterServiceData();
            string            serializedService = objectSerializationProvider.Serialize(service);

            if (File.Exists(Directory.GetCurrentDirectory() + "\\MasterService.dat"))
            {
                File.Delete(Directory.GetCurrentDirectory() + "\\MasterService.dat");
            }

            using (TextWriter writer = new StreamWriter((Directory.GetCurrentDirectory() + "\\MasterService.dat")))
            {
                writer.WriteLine(serializedService);
            }
        }
Пример #24
0
        public static void SerializeServiceData()
        {
            IServicesService             servicesService             = ObjectLocator.GetInstance <IServicesService>();
            IObjectSerializationProvider objectSerializationProvider = ObjectLocator.GetInstance <IObjectSerializationProvider>();

            Service service           = servicesService.GetServiceById(2);
            string  serializedService = objectSerializationProvider.Serialize(service);

            if (File.Exists(Directory.GetCurrentDirectory() + "\\Service.dat"))
            {
                File.Delete(Directory.GetCurrentDirectory() + "\\Service.dat");
            }

            using (TextWriter writer = new StreamWriter((Directory.GetCurrentDirectory() + "\\Service.dat")))
            {
                writer.WriteLine(serializedService);
            }
        }