public TestRun GetTestRun(IBlobStorageDb blobStore) { var blobref = GetOnlyBlobId(); var bytes = blobStore.GetBytes(blobref); return(Deserialize <TestRun>(bytes)); }
public static X509Certificate2 GetCertificateFromBlobStorage(string thumb, string privatekeypassword, IBlobStorageDb blobStorage) { var certBlob = blobStorage.GetBytes(thumb); return(new X509Certificate2(certBlob, privatekeypassword, X509KeyStorageFlags.Exportable)); }