Example #1
0
        internal BotBitsClient(ISchedulerHandle handle)
        {
            this._packageLoader = new PackageLoader(this);
            this.Extensions = new List<Type>();

            DefaultExtension.LoadInto(this, handle);
        }
Example #2
0
        internal BotBitsClient(ISchedulerHandle handle)
        {
            this._packageLoader = new PackageLoader(this);
            this.Extensions     = new List <Type>();

            DefaultExtension.LoadInto(this, handle);
        }
Example #3
0
        internal void SetScheduler(ISchedulerHandle handle)
        {
            var old = Interlocked.Exchange(ref this._schedulerHandle, handle);

            if (old != null)
            {
                old.Dispose();
            }
        }
Example #4
0
 private bool CompareSetScheduler(ISchedulerHandle handle)
 {
     return(Interlocked.CompareExchange(ref this._schedulerHandle, handle, null) == null);
 }
Example #5
0
        internal void SetScheduler(ISchedulerHandle handle)
        {
            var old = Interlocked.Exchange(ref this._schedulerHandle, handle);

            old?.Dispose();
        }
Example #6
0
 public static bool LoadInto(BotBitsClient client, ISchedulerHandle handle)
 {
     return(LoadInto(client, (object)handle));
 }
Example #7
0
 private bool CompareSetScheduler(ISchedulerHandle handle)
 {
     return Interlocked.CompareExchange(ref this._schedulerHandle, handle, null) == null;
 }
Example #8
0
 internal void SetScheduler(ISchedulerHandle handle)
 {
     var old = Interlocked.Exchange(ref this._schedulerHandle, handle);
     if (old != null)
         old.Dispose();
 }