예제 #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();
 }
예제 #2
0
파일: CloudService.cs 프로젝트: llenroc/API
 public Task AddServiceCertificateAsync(ServiceCertificate certificate)
 {
     return(certificate.AddAsync(this));
 }