Ejemplo n.º 1
0
 public TestController(
     ITransientDependency transientDependency,
     ISingletonDependency singletonDependency,
     HttpRequestMessage request)
 {
     _transientDependency = transientDependency;
     _singletonDependency = singletonDependency;
     _request             = request;
 }
Ejemplo n.º 2
0
 public HeaderService(
     HttpResponseMessage response,
     ISingletonDependency singletonDependency,
     ITransientDependency transientDependency)
 {
     _response            = response;
     _singletonDependency = singletonDependency;
     _transientDependency = transientDependency;
 }
Ejemplo n.º 3
0
 public MyOtherCoolService(
     ISingletonDependency singleton,
     ITransientDependency transient,
     IScopedDependency scoped)
 {
     _singleton = singleton;
     _transient = transient;
     _scoped    = scoped;
 }
Ejemplo n.º 4
0
 public IfWorker(ILogger <IfWorker> logger,
                 ISingletonDependency singletonDependency,
                 IScopedDependency scopedDependency,
                 ITransientDependency transientDependency)
 {
     _logger = logger;
     _singletonDependency = singletonDependency;
     _scopedDependency    = scopedDependency;
     _transientDependency = transientDependency;
 }
Ejemplo n.º 5
0
        public FakeNancyModule(ITransientDependency transientDepenency, ISingletonDependency singletonDependency, IPerRequestDependency perRequestDependency, IInstanceDependency instanceDependency)
        {
            TransientDependency  = transientDepenency;
            SingletonDependency  = singletonDependency;
            PerRequestDependency = perRequestDependency;
            InstanceDependency   = instanceDependency;

            Get["/"] = _ =>
            {
                return("Hello world :)");
            };
        }
Ejemplo n.º 6
0
 public InitCounterWorker(AppSettings appSettings,
                          ILogger <InitCounterWorker> logger,
                          ISingletonDependency singletonDependency,
                          IScopedDependency scopedDependency,
                          ITransientDependency transientDependency)
 {
     _appSettings         = appSettings;
     _logger              = logger;
     _singletonDependency = singletonDependency;
     _scopedDependency    = scopedDependency;
     _transientDependency = transientDependency;
 }
Ejemplo n.º 7
0
 public DependencyUser(ISingletonDependency dependency)
 {
     _dependency = dependency;
 }
Ejemplo n.º 8
0
 public DependencyUser(ISingletonDependency dependency)
 {
     _dependency = dependency;
 }
Ejemplo n.º 9
0
 public DummyService(
     HttpActionExecutedContext context,
     ISingletonDependency singletonDependency,
     ITransientDependency transientDependency)
 {
 }
 public BrokeredMessageProcessor(ISingletonDependency singletonDependency, IScopedDependency scopedDependency)
 {
     _singletonDependency = singletonDependency;
     _scopedDependency    = scopedDependency;
 }
Ejemplo n.º 11
0
 public WarmupTestServiceGrain(ISingletonDependency singletonDependency)
 {
     _initTime            = DateTime.Now;
     _singletonDependency = singletonDependency;
 }
Ejemplo n.º 12
0
 public static void LogInformation(this ILogger <BaseWorker> logger, BaseWorker self, IAppContext ctx, ISingletonDependency sng, IScopedDependency scp, ITransientDependency trn)
 {
     logger.LogInformation($"{self} - executing ...{Environment.NewLine} context: {ctx} | dependencies: [{sng}, {scp}, {trn}]");
 }