public bool DatabaseServiceTest(string url)
        {
            ActivationServiceClient client = ActivationServiceClientCreator(url);
            bool testResult = client.DatabaseServiceTest();

            return(testResult);
        }
        public bool FileSystemServiceTest(string url)
        {
            ActivationServiceClient client = ActivationServiceClientCreator(url);
            bool testResult = client.FileSystemServiceTest();

            return(testResult);
        }
        public string BasicServiceTest(string url)
        {
            ActivationServiceClient client = ActivationServiceClientCreator(url);
            string testResult = client.BasicServiceTest();

            return(testResult);
        }
        public ActivationResult ActivateLicense(string url, string token, EncryptionInfo encryptionInfo,
                                                LicenseActivationPayload payload, ClientLicense clientLicense)
        {
            ActivationServiceClient client = ActivationServiceClientCreator(url);

            string encryptedToken    = _symmetricEncryptionProvider.Encrypt(token, encryptionInfo);
            string serializedPayload = _objectSerializationProvider.Serialize(payload);
            string encryptedData     = _asymmetricEncryptionProvider.EncryptPrivate(serializedPayload, clientLicense.ServicesKeys);


            string serviceResult = client.ActivateLicense(encryptedToken, encryptedData);
            string result        = _asymmetricEncryptionProvider.DecryptPublic(serviceResult, clientLicense.ServicesKeys);

            ActivationResult activationResult = _objectSerializationProvider.Deserialize <ActivationResult>(result);

            return(activationResult);
        }
Exemple #5
0
 public static void TestService()
 {
     ActivationServiceClient client = new ActivationServiceClient();
 }
Exemple #6
0
 public static void TestService()
 {
     ActivationServiceClient client = new ActivationServiceClient();
 }