internal BotBitsClient(ISchedulerHandle handle) { this._packageLoader = new PackageLoader(this); this.Extensions = new List<Type>(); DefaultExtension.LoadInto(this, handle); }
internal BotBitsClient(ISchedulerHandle handle) { this._packageLoader = new PackageLoader(this); this.Extensions = new List <Type>(); DefaultExtension.LoadInto(this, handle); }
internal void SetScheduler(ISchedulerHandle handle) { var old = Interlocked.Exchange(ref this._schedulerHandle, handle); if (old != null) { old.Dispose(); } }
private bool CompareSetScheduler(ISchedulerHandle handle) { return(Interlocked.CompareExchange(ref this._schedulerHandle, handle, null) == null); }
internal void SetScheduler(ISchedulerHandle handle) { var old = Interlocked.Exchange(ref this._schedulerHandle, handle); old?.Dispose(); }
public static bool LoadInto(BotBitsClient client, ISchedulerHandle handle) { return(LoadInto(client, (object)handle)); }
private bool CompareSetScheduler(ISchedulerHandle handle) { return Interlocked.CompareExchange(ref this._schedulerHandle, handle, null) == null; }
internal void SetScheduler(ISchedulerHandle handle) { var old = Interlocked.Exchange(ref this._schedulerHandle, handle); if (old != null) old.Dispose(); }