Beispiel #1
0
        public CommonProcessor(ExposedValues exposedValues, IUrlGenerator urlGenerator)
        {
            logoUrl = urlGenerator.BuildUrl("images/logo-white.png", false);

            if (!exposedValues.TryGetValue("version", out version !) || version == null)
            {
                version = "1.0";
            }
        }
Beispiel #2
0
        public CommonProcessor(ExposedValues exposedValues, IOptions <UrlsOptions> urlOptions)
        {
            logoUrl = urlOptions.Value.BuildUrl("images/logo-white.png", false);

            if (!exposedValues.TryGetValue("version", out version))
            {
                version = "1.0";
            }
        }
Beispiel #3
0
 public PingController(ICommandBus commandBus, ExposedValues exposedValues)
     : base(commandBus)
 {
     this.exposedValues = exposedValues;
 }