Example #1
0
        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;
        }
Example #2
0
            public void InitializeContext()
            {
                appHost = new AppHostForAzureTesting();
                appHost.Init();
                appHost.Start(BaseUrl);

                client             = new JsonServiceClient(BaseUrl);
                subscriptionsStore = appHost.Resolve <ISubscriptionStore>();
                eventSink          = appHost.Resolve <IEventSink>();
            }
Example #3
0
 public void TestFixtureSetUp()
 {
     appHost = new AppSelfHost();
     appHost.Init();
     appHost.Start(BaseUrl);
 }