Exemplo n.º 1
0
 public CloudServiceTests()
 {
     CloudService = new CloudService("test-" + Guid.NewGuid().ToString("N"), TestLocation, LocationType.Region)
     {
         Description = "Test Description"
     };
     Debug.WriteLine("CloudServiceTests ctor - creating test service");
     TestConstants.Subscription.CreateCloudServiceAsync (CloudService).Wait();
     var cert = new X509Certificate2(@"..\..\CertKey.pfx", "1234", X509KeyStorageFlags.Exportable);
     var serviceCertificate = new ServiceCertificate(cert);
     CloudService.AddServiceCertificateAsync(serviceCertificate).Wait();
 }
Exemplo n.º 2
0
 public Task AddServiceCertificateAsync(ServiceCertificate certificate)
 {
     return(certificate.AddAsync(this));
 }