Example #1
0
 public OwinCommunicationListener(StatefulServiceContext serviceContext,
                                  Common.IStockBidService svc, ServiceEventSource eventSource, string endpointName, string appRoot)
 {
     if (serviceContext == null)
     {
         throw new ArgumentNullException(nameof(serviceContext));
     }
     if (endpointName == null)
     {
         throw new ArgumentNullException(nameof(endpointName));
     }
     if (eventSource == null)
     {
         throw new ArgumentNullException(nameof(eventSource));
     }
     if (null == svc)
     {
         throw new ArgumentNullException(nameof(svc));
     }
     this.serviceInstance = svc; this.serviceContext = serviceContext; this.endpointName = endpointName; this.eventSource = eventSource; this.appRoot = appRoot;
 }
Example #2
0
 public OwinCommunicationListener(StatefulServiceContext serviceContext, Common.IStockBidService svc, ServiceEventSource eventSource, string endpointName)
     : this(serviceContext, svc, eventSource, endpointName, null)
 {
 }