示例#1
0
    void Start()
    {
        _foodConfig = GetComponentInParent <FoodConfig>();

        var sprite = _foodConfig.GetFoodSprite(Type);

        Instantiate(sprite, _spriteParent.transform);
    }
 public MailController(IOptions <FoodConfig> cfg)
 {
     config = (FoodConfig)cfg.Value;
 }
示例#3
0
 public EventGridPublisher(IConfiguration config)
 {
     cfg = config.Get <FoodConfig>();
 }
示例#4
0
        public MailController(IConfiguration cfg)
        {
            var val = cfg.GetValue <string>("App:AuthEnabled");

            config = cfg.Get <FoodConfig>();
        }