Пример #1
0
        public TestRun GetTestRun(IBlobStorageDb blobStore)
        {
            var blobref = GetOnlyBlobId();
            var bytes   = blobStore.GetBytes(blobref);

            return(Deserialize <TestRun>(bytes));
        }
Пример #2
0
        public static X509Certificate2 GetCertificateFromBlobStorage(string thumb, string privatekeypassword, IBlobStorageDb blobStorage)
        {
            var certBlob = blobStorage.GetBytes(thumb);

            return(new X509Certificate2(certBlob, privatekeypassword, X509KeyStorageFlags.Exportable));
        }