Esempio n. 1
0
 public GatedDynamicSchedulerService(StatelessServiceContext serviceContext,
                                     AspNetCoreCommunicationContext communicationContext)
     : base(serviceContext)
 {
     _communicationContext = communicationContext;
     _semaphore            = new SemaphoreSlim(1, 1);
 }
Esempio n. 2
0
        public AspNetCoreCommunicationListener(AspNetCoreCommunicationContext context, StatefulService service)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            if (service == null)
            {
                throw new ArgumentNullException(nameof(service));
            }

            _context  = context;
            _service  = service;
            _registry = _context.WebHost.Services.GetService <ServiceFabricServiceRegistry>();
        }
Esempio n. 3
0
 public GatewayService(StatelessServiceContext serviceContext, AspNetCoreCommunicationContext communicationContext)
     : base(serviceContext)
 {
     _communicationContext = communicationContext;
 }
Esempio n. 4
0
 public CounterService(StatefulServiceContext serviceContext, AspNetCoreCommunicationContext communicationContext)
     : base(serviceContext)
 {
     _communicationContext = communicationContext;
     _semaphore            = new SemaphoreSlim(1, 1);
 }
Esempio n. 5
0
 public GatewayService(AspNetCoreCommunicationContext context)
 {
     _context = context;
 }
Esempio n. 6
0
 public CounterService(AspNetCoreCommunicationContext context)
 {
     _context   = context;
     _semaphore = new SemaphoreSlim(1, 1);
 }