예제 #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;
 }
예제 #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;
 }
예제 #9
0
 public NoParameterlessConstructorController(IInjectedService service, IAnotherInjectedService anotherService)
 {
     this.Service = service;
     this.AnotherInjectedService = anotherService;
 }
예제 #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;
 }
예제 #13
0
 public NoParameterlessConstructorController(IInjectedService service)
 {
     this.Service = service;
 }
 public NoParameterlessConstructorController(IInjectedService service, IAnotherInjectedService anotherService)
 {
     this.Service = service;
     this.AnotherInjectedService = anotherService;
 }
예제 #15
0
 internal NoParameterlessConstructorController(IInjectedService service)
 {
     this.service = service;
 }
 public MyOtherActionFilter(IInjectedService service)
 {
     this.service = service;
 }
 internal NoParameterlessConstructorController(IInjectedService service)
 {
     this.service = service;
 }
예제 #18
0
 public CustomActionFilterWithArgs(IInjectedService service, int maxRequestPerSecond)
 {
     this.service             = service;
     this.MaxRequestPerSecond = maxRequestPerSecond;
 }
예제 #19
0
 public RouteController(IInjectedService injectedService, IAnotherInjectedService anotherService)
 {
 }
 public PipelineController(IInjectedService service)
 => this.Service = service;
예제 #21
0
 public ExplicitlyRegisteredSimpleDIGrain(IInjectedService injectedService, string someValueThatIsNotRegistered, int numberOfReleasedInstancesBeforeThisActivation)
 {
     this.injectedService = injectedService;
     this.someValueThatIsNotRegistered = someValueThatIsNotRegistered;
     this.numberOfReleasedInstancesBeforeThisActivation = numberOfReleasedInstancesBeforeThisActivation;
 }
예제 #22
0
 public ServicesComponent(IInjectedService service)
 {
     this.Service = service;
 }
예제 #23
0
 public WebApiController(IInjectedService injectedService, IAnotherInjectedService anotherInjectedService)
     : this(injectedService)
 {
     this.AnotherInjectedService = anotherInjectedService;
 }
예제 #24
0
 public WebApiController(IInjectedService injectedService, IAnotherInjectedService anotherInjectedService, RequestModel requestModel)
     : this(injectedService, anotherInjectedService)
 {
     this.InjectedRequestModel = requestModel;
 }
예제 #25
0
 public SimpleDIGrain(IInjectedService injectedService)
 {
     this.injectedService = injectedService;
 }
예제 #26
0
 public MvcController(IInjectedService injectedService)
 {
     this.InjectedService = injectedService;
     this.responseModel   = TestObjectFactory.GetListOfResponseModels();
 }
 public MvcController(IInjectedService injectedService, RequestModel requestModel)
     : this(injectedService)
 {
     this.InjectedRequestModel = requestModel;
 }
예제 #28
0
 public MvcController(IInjectedService injectedService, RequestModel requestModel)
     : this(injectedService)
 {
     this.InjectedRequestModel = requestModel;
 }
 public FullPocoController(IInjectedService injectedService, IAnotherInjectedService anotherInjectedService)
     : this(injectedService)
 {
     this.AnotherInjectedService = anotherInjectedService;
 }
예제 #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>();
    }