// To run, it is necessary to first set permissions (as root) // netsh http add urlacl url=http://+:80/.well-known user=VOODOO\Phillip // netsh http add urlacl url="http://recrypt.prismproof.org:80/.well-known/RecryptService/" user=VOODOO\Phillip /// <summary> /// Start the server /// </summary> /// <param name="Options"></param> public override void Start(Start Options) { // Create the provider object. var ServiceProvider = new PublicRecryptServiceProvider(Options.Address.Value, Options.PortalStore.Value); // Create the server, add the provider, create service port. var Server = new JPCServer(); var HostReg = Server.Add(ServiceProvider); // Create the interface dispatcher for the provider. var Interface = new PublicRecryptService(ServiceProvider, null); var InterfaceReg = HostReg.Add (Interface); // Register the network port. var PortReg = InterfaceReg.AddService(Options.Address.Value); // Run until abort Server.RunBlocking(); }
/// <summary> /// Return a MeshService object for the named portal service. /// </summary> public override RecryptService GetService(string Portal, string Account) { var Session = new DirectSession(null); MeshServiceClient = new PublicRecryptService(RecryptServiceHost, Session); return MeshServiceClient; }