public SelfHostCommunicationListener(AppSelfHostBase appHost, ServiceContext serviceContext, ServiceEventSource eventSource, string endpointName, string appRoot = null) { if (appHost == null) { throw new ArgumentNullException(nameof(appHost)); } if (serviceContext == null) { throw new ArgumentNullException(nameof(serviceContext)); } if (endpointName == null) { throw new ArgumentNullException(nameof(endpointName)); } if (eventSource == null) { throw new ArgumentNullException(nameof(eventSource)); } this.appHost = appHost; this.serviceContext = serviceContext; this.endpointName = endpointName; this.eventSource = eventSource; this.appRoot = appRoot; }
public void InitializeContext() { appHost = new AppHostForAzureTesting(); appHost.Init(); appHost.Start(BaseUrl); client = new JsonServiceClient(BaseUrl); subscriptionsStore = appHost.Resolve <ISubscriptionStore>(); eventSink = appHost.Resolve <IEventSink>(); }
public void TestFixtureSetUp() { appHost = new AppSelfHost(); appHost.Init(); appHost.Start(BaseUrl); }