public void ProviderHost_Constructor_Works() { var providerHost = new ProviderHost(typeof(MockBeaconProvider)); IEnumerable <InstrumentNameResolution> resolutions = providerHost.LoadInstruments(new string[] { "EURUSD", "USDJPY" }); providerHost.Startup(); providerHost.Shutdown(); }
static void Main(string[] args) { //This Initialize method is needed to link to Windows Server references that are not GACed Microsoft.WindowsServerSolutions.Common.WindowsServerSolutionsEnvironment.Initialize(); ProviderHost host = new ProviderHost(typeof(ProviderService), "provider"); host.Open(); System.Console.ReadLine(); host.Dispose(); }
public void Start() { this.host = new ProviderHost(typeof(ProviderService), "provider"); this.host.Open(); }