Info
Version: | 0.6.2.3 |
Author(s): | RelaxCoder |
Last Update: | Tuesday, January 7, 2014 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | http://www.nuget.org/packages/RelaxCoder.WebBrowserSignalR/ |
NuGet Url: | https://www.nuget.org/packages/RelaxCoder.WebBrowserSignalR |
Install
Install-Package RelaxCoder.WebBrowserSignalR
dotnet add package RelaxCoder.WebBrowserSignalR
paket add RelaxCoder.WebBrowserSignalR
RelaxCoder.WebBrowserSignalR Download (Unzip the "nupkg" after downloading)
Dependencies
- Microsoft.AspNet.SignalR.Owin(1.1.4)
- Microsoft.Owin.Host.HttpListener(2.0.2)
- Microsoft.Owin.Hosting(2.0.2)
Tags
// 1.Create a DotNet4.0 project(WindowsFormsApplication) and copy codes below.
// 2.Add an Application Manifest File(app.manifest) to your project and set requestedExecutionLevel to "requireAdministrator" or "highestAvailable".
// 3.Download and unzip to your project excute path and run your project.
// (select Win32 Binary) http://webkitdotnet.sourceforge.net/downloads.php
//
// 4.If you want Chrome kernel, change code to enumWebBrowserType.CefSharp
// https://github.com/cefsharp/CefSharp/releases/download/v1.25.5/CefSharp-v1.25.5-binaries.zip
// CefSharp-v1.25.5 need Microsoft Visual C++ 2012 Redistributable
//
using System;
using System.Windows.Forms;
namespace test1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
var WebBrowserType = RelaxCoder.WebBrowserSignalR.WebBrowserSignalR.enumWebBrowserType.WebKit;
var SignalrSelfHostPort = 60001;
var SignalrSelfHostIp = "127.0.0.1";
Action DisposeAction_AfterFormDisposedEvent = () =>
{
// Your DisposeAction
};
string urlSignalr = null;
var w = RelaxCoder.WebBrowserSignalR.WebBrowserSignalR.AddWebBrowser(SignalrSelfHostIp, SignalrSelfHostPort, WebBrowserType,
"", this, "", out urlSignalr, DisposeAction_AfterFormDisposedEvent);
RelaxCoder.WebBrowserSignalR.WebBrowserSignalR.SetWebBrowserUrl(w, "http://html5test.com");
}
}
}
.