Beispiel #1
0
        public ClipboardObjectsManager(IClipboardObjectManager objectManager, IEnumerable <IFormatsExtractor> formatsExtractors, IEnumerable <IClipboardFilter> clipboardFilters, IServiceProvider serviceProvider)
        {
            _objectManager         = objectManager;
            this.formatsExtractors = formatsExtractors;
            this.clipboardFilters  = clipboardFilters;

            _allCollection    = new KeyedCollectionFunc <Guid, ClipboardObject>(co => co.Id, new ConcurrentDictionary <Guid, ClipboardObject>());
            _linkedCollection = new ConcurrentDictionary <ClipboardObject, List <ClipboardObject> >();

            _listeners = new List <IClipboardObjectsListener>();

            clipboardCloner           = serviceProvider.Create <ClipboardClonerThread>(this);
            clipboardTriggerScheduler = serviceProvider.Create <ClipboardTriggerScheduler>(clipboardCloner);
        }
Beispiel #2
0
 public ClipboardTriggerScheduler(ClipboardClonerThread clipboardClonerThread)
 {
     this.clipboardClonerThread = clipboardClonerThread;
 }