Exemple #1
0
 public DIGrainWithInjectedServices(IInjectedService injectedService, IGrainFactory injectedGrainFactory)
 {
     this.injectedService = injectedService;
     this.injectedGrainFactory = injectedGrainFactory;
     bool set;
     // get the object Id for injected GrainFactory, 
     // object Id will be the same if the underlying object is the same,
     // this is one way to prove that this GrainFactory is injected from DI
     this.grainFactoryId = ObjectIdGenerator.GetId(this.injectedGrainFactory, out set);
 }
 public FullPocoController(IInjectedService injectedService, IAnotherInjectedService anotherInjectedService, RequestModel requestModel)
     : this(injectedService, anotherInjectedService)
 {
     this.InjectedRequestModel = requestModel;
 }
 public FullPocoController(IInjectedService injectedService)
 {
     this.InjectedService = injectedService;
 }
 public MvcController(IInjectedService injectedService)
 {
     this.InjectedService = injectedService;
     this.responseModel = TestObjectFactory.GetListOfResponseModels();
 }
 public ApiDemoController(IEventLogger log,IInjectedService svc)
 {
     _log = log;
     _svc = svc;
 }
Exemple #6
0
 public ExplicitlyRegisteredSimpleDIGrain(IInjectedService injectedService, string someValueThatIsNotRegistered)
 {
     this.injectedService = injectedService;
     this.someValueThatIsNotRegistered = someValueThatIsNotRegistered;
 }
 public MultipleServicesComponent(IInjectedService injectedService, IAnotherInjectedService anotherService)
 {
     this.InjectedService = injectedService;
     this.AnotherService = anotherService;
 }
 public InjectedController(IInjectedService svc,IEventLogger log)
 {
     _svc = svc;
     _log = log;
 }
Exemple #9
0
 public NoParameterlessConstructorController(IInjectedService service, IAnotherInjectedService anotherService)
 {
     this.Service = service;
     this.AnotherInjectedService = anotherService;
 }
Exemple #10
0
 public RootService(IOtherService otherService, IInjectedService injectedService)
 {
     this.OtherService    = otherService;
     this.InjectedService = injectedService;
 }
 public MyService(IInjectedService injectedService)
 {
     _injectedService = injectedService;
 }
 public NoParameterlessConstructorController(IInjectedService service)
 {
     this.Service = service;
 }
Exemple #13
0
 public NoParameterlessConstructorController(IInjectedService service)
 {
     this.Service = service;
 }
 public NoParameterlessConstructorController(IInjectedService service, IAnotherInjectedService anotherService)
 {
     this.Service = service;
     this.AnotherInjectedService = anotherService;
 }
Exemple #15
0
 internal NoParameterlessConstructorController(IInjectedService service)
 {
     this.service = service;
 }
 public MyOtherActionFilter(IInjectedService service)
 {
     this.service = service;
 }
 internal NoParameterlessConstructorController(IInjectedService service)
 {
     this.service = service;
 }
Exemple #18
0
 public CustomActionFilterWithArgs(IInjectedService service, int maxRequestPerSecond)
 {
     this.service             = service;
     this.MaxRequestPerSecond = maxRequestPerSecond;
 }
 public RouteController(IInjectedService injectedService, IAnotherInjectedService anotherService)
 {
 }
 public PipelineController(IInjectedService service)
 => this.Service = service;
 public ExplicitlyRegisteredSimpleDIGrain(IInjectedService injectedService, string someValueThatIsNotRegistered, int numberOfReleasedInstancesBeforeThisActivation)
 {
     this.injectedService = injectedService;
     this.someValueThatIsNotRegistered = someValueThatIsNotRegistered;
     this.numberOfReleasedInstancesBeforeThisActivation = numberOfReleasedInstancesBeforeThisActivation;
 }
Exemple #22
0
 public ServicesComponent(IInjectedService service)
 {
     this.Service = service;
 }
 public WebApiController(IInjectedService injectedService, IAnotherInjectedService anotherInjectedService)
     : this(injectedService)
 {
     this.AnotherInjectedService = anotherInjectedService;
 }
Exemple #24
0
 public WebApiController(IInjectedService injectedService, IAnotherInjectedService anotherInjectedService, RequestModel requestModel)
     : this(injectedService, anotherInjectedService)
 {
     this.InjectedRequestModel = requestModel;
 }
Exemple #25
0
 public SimpleDIGrain(IInjectedService injectedService)
 {
     this.injectedService = injectedService;
 }
Exemple #26
0
 public MvcController(IInjectedService injectedService)
 {
     this.InjectedService = injectedService;
     this.responseModel   = TestObjectFactory.GetListOfResponseModels();
 }
 public MvcController(IInjectedService injectedService, RequestModel requestModel)
     : this(injectedService)
 {
     this.InjectedRequestModel = requestModel;
 }
Exemple #28
0
 public MvcController(IInjectedService injectedService, RequestModel requestModel)
     : this(injectedService)
 {
     this.InjectedRequestModel = requestModel;
 }
 public FullPocoController(IInjectedService injectedService, IAnotherInjectedService anotherInjectedService)
     : this(injectedService)
 {
     this.AnotherInjectedService = anotherInjectedService;
 }
Exemple #30
0
 public MvcController(IInjectedService injectedService, IAnotherInjectedService anotherInjectedService)
     : this(injectedService)
 {
     this.AnotherInjectedService = anotherInjectedService;
 }
 public ServicesComponent(IInjectedService service)
 {
     this.Service = service;
 }
    public MyHostedService(IServiceProvider services)
    {
        var scope = services.CreateScope();

        _myInjectedService = scope.ServiceProvider.GetRequiredService <IInjectedService>();
    }