Esempio n. 1
0
        public AccountBaseApplication(IComponentContext context)
        {
            if (!context.IsNull())
            {
                if (context.TryResolve(typeof(IConnection), out var connection))
                {
                    Connection = connection as IConnection;
                }

                if (context.TryResolve(typeof(INotifier), out var notifier))
                {
                    Notifier = notifier as INotifier;
                }

                this.context = context;
            }
        }