Exemple #1
0
 public GatedDynamicSchedulerService(StatelessServiceContext serviceContext,
                                     AspNetCoreCommunicationContext communicationContext)
     : base(serviceContext)
 {
     _communicationContext = communicationContext;
     _semaphore            = new SemaphoreSlim(1, 1);
 }
Exemple #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>();
        }
Exemple #3
0
 public GatewayService(StatelessServiceContext serviceContext, AspNetCoreCommunicationContext communicationContext)
     : base(serviceContext)
 {
     _communicationContext = communicationContext;
 }
Exemple #4
0
 public CounterService(StatefulServiceContext serviceContext, AspNetCoreCommunicationContext communicationContext)
     : base(serviceContext)
 {
     _communicationContext = communicationContext;
     _semaphore            = new SemaphoreSlim(1, 1);
 }
Exemple #5
0
 public GatewayService(AspNetCoreCommunicationContext context)
 {
     _context = context;
 }
Exemple #6
0
 public CounterService(AspNetCoreCommunicationContext context)
 {
     _context   = context;
     _semaphore = new SemaphoreSlim(1, 1);
 }