public GStoreServicesImpl(ServerDomain store, ServerManager man, int minDelay, int maxDelay) { this.store = store; this.man = man; this.minDelay = minDelay; this.maxDelay = maxDelay; }
static void Main() { // Enable Support For Unencrypted HTTP2 AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true); ParseArgs(); var hp = Lib.ParseURL(URL); var store = new ServerDomain(); Grpc.Core.Server server = new Grpc.Core.Server { Services = { GStoreServices.BindService(new GStoreServicesImpl(store, man, minDelay, maxDelay)), GStoreSync.BindService(new GStoreSyncImpl(store, man, minDelay, maxDelay)), PupSyncServices.BindService(new PupSyncServicesImpl(store, man)) }, Ports = { new ServerPort(hp[0], Convert.ToInt16(hp[1]), ServerCredentials.Insecure) } }; server.Start(); Lib.Block(URL); }
public PupSyncServicesImpl(ServerDomain store, ServerManager man) { this.store = store; this.man = man; }