packaging
parent
8e16b77575
commit
ef4c7f87c4
@ -1 +1 @@
|
|||||||
02
|
03
|
||||||
|
@ -0,0 +1,20 @@
|
|||||||
|
using Yavsc.Server.Models.IT.SourceCode;
|
||||||
|
|
||||||
|
public class Builder {
|
||||||
|
|
||||||
|
|
||||||
|
public void Clone()
|
||||||
|
{
|
||||||
|
var firstProject = _dbContext.Project.Include(p=>p.Repository).FirstOrDefault();
|
||||||
|
Assert.NotNull (firstProject);
|
||||||
|
var di = new DirectoryInfo(_serverFixture.SiteSetup.GitRepository);
|
||||||
|
if (!di.Exists) di.Create();
|
||||||
|
|
||||||
|
|
||||||
|
var clone = new GitClone(_serverFixture.SiteSetup.GitRepository);
|
||||||
|
clone.Launch(firstProject);
|
||||||
|
gitRepo = di.FullName;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
using System.Net.WebSockets;
|
||||||
|
|
||||||
|
public class Streamer {
|
||||||
|
private ClientWebSocket _client;
|
||||||
|
|
||||||
|
public Streamer(string token)
|
||||||
|
{
|
||||||
|
_client = new ClientWebSocket();
|
||||||
|
_client.Options.SetRequestHeader("Authorization", $"Bearer {token}");
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue