コード例 #1
0
        public ExposureNotificationStorage(ExposureNotificationContext context, IOptions <Settings> settings)
        {
            this.context  = context;
            this.settings = settings.Value;

            this.context.Database.SetCommandTimeout(900);
        }
コード例 #2
0
        public ExposureNotificationStorage(ExposureNotificationContext context, IOptions <Settings> settings)
        {
            this.context  = context;
            this.settings = settings.Value;

            if (!context.Database.IsInMemory() && this.settings.DbCommandTimeout > 0)
            {
                this.context.Database.SetCommandTimeout(this.settings.DbCommandTimeout);
            }
        }
 public ExposureNotificationStorage(ExposureNotificationContext context, IOptions <Settings> settings)
 {
     this.context  = context;
     this.settings = settings.Value;
 }