-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added example for multitenant subprocesses
- Loading branch information
1 parent
48b1258
commit b0d9cde
Showing
10 changed files
with
152 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!DOCTYPE html> | ||
|
||
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Multitenant Test</title> | ||
<script> | ||
function onLoad() | ||
{ | ||
var p = document.getElementById('p'); | ||
var btn = document.getElementById('btn'); | ||
if (window.opener) | ||
{ | ||
btn.parentElement.removeChild(btn); | ||
} | ||
uniqueObject.id().then(function(res) { | ||
p.innerText = res; | ||
}); | ||
} | ||
|
||
function openWindow() | ||
{ | ||
window.open(window.location, '', 'width=300,height=300'); | ||
} | ||
</script> | ||
</head> | ||
<body onload="onLoad()"> | ||
<button id="btn" onclick="openWindow()">New Window</button> | ||
<p id="p"></p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System.Threading; | ||
|
||
namespace CefSharp.Example | ||
{ | ||
public class UniqueBoundObject | ||
{ | ||
private static int lastId = 0; | ||
private int id; | ||
|
||
public UniqueBoundObject() | ||
{ | ||
id = Interlocked.Increment(ref lastId); | ||
} | ||
|
||
public int Id() | ||
{ | ||
return id; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters