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; }
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; }
public NoParameterlessConstructorController(IInjectedService service, IAnotherInjectedService anotherService) { this.Service = service; this.AnotherInjectedService = anotherService; }
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; }
internal NoParameterlessConstructorController(IInjectedService service) { this.service = service; }
public MyOtherActionFilter(IInjectedService service) { this.service = service; }
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; }
public ServicesComponent(IInjectedService service) { this.Service = service; }
public WebApiController(IInjectedService injectedService, IAnotherInjectedService anotherInjectedService) : this(injectedService) { this.AnotherInjectedService = anotherInjectedService; }
public WebApiController(IInjectedService injectedService, IAnotherInjectedService anotherInjectedService, RequestModel requestModel) : this(injectedService, anotherInjectedService) { this.InjectedRequestModel = requestModel; }
public SimpleDIGrain(IInjectedService injectedService) { this.injectedService = injectedService; }
public MvcController(IInjectedService injectedService, RequestModel requestModel) : this(injectedService) { this.InjectedRequestModel = requestModel; }
public FullPocoController(IInjectedService injectedService, IAnotherInjectedService anotherInjectedService) : this(injectedService) { this.AnotherInjectedService = anotherInjectedService; }
public MvcController(IInjectedService injectedService, IAnotherInjectedService anotherInjectedService) : this(injectedService) { this.AnotherInjectedService = anotherInjectedService; }
public MyHostedService(IServiceProvider services) { var scope = services.CreateScope(); _myInjectedService = scope.ServiceProvider.GetRequiredService <IInjectedService>(); }