public DistributedCachableFactory(IDistributedCache cache,
                                   IEntrySerializer serializer, CachableOptions <DistributedCacheEntryOptions> options)
 {
     _cache      = cache;
     _serializer = serializer;
     _options    = options;
 }
Example #2
0
        public SheetWindow(IServiceLocator serviceLocator)
        {
            InitializeComponent();

            this._serviceLocator  = serviceLocator;
            this._entryController = serviceLocator.GetInstance <IEntryController>();
            this._entryFactory    = serviceLocator.GetInstance <IEntryFactory>();
            this._entrySerializer = serviceLocator.GetInstance <IEntrySerializer>();

            _scopeServiceLocators = new List <IScopeServiceLocator>();
            _sheetControllers     = new List <ISheetController>();

            SinglePage();
            //MultiPage();

            var library = _serviceLocator.GetInstance <ILibraryView>();

            Library.Content = library;

            Init();

            Loaded += (sender, e) => _sheetController.State.View.Focus();
        }