I hereby claim:
- I am tstephansen on github.
- I am tstephansen (https://keybase.io/tstephansen) on keybase.
- I have a public key ASChXnNqN0SED7U2b-rdMPnllM506alKyepT6rLWkZmoAwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
This was copied from here. I added the 0-255 values as a quick reference.
using System; | |
using Prism.Ioc; | |
using Prism.Unity; | |
using Unity; | |
using Unity.Lifetime; | |
using Unity.Registration; | |
namespace MyProject.PrismExtensions | |
{ | |
/// <summary> |
using System.Runtime.InteropServices; | |
namespace ControlExample; | |
public class Example | |
{ | |
public float GetMainVolume() => getMainVolume(); | |
public void SetMainVolume(float volume) => setMainVolume(volume); | |
public bool IsMainVolumeMuted() => isMainVolumeMuted(); | |
public void MuteMainVolume() => muteMainVolume(); |
using System.Collections.Concurrent; | |
namespace MyProject.Handlers; | |
/// <summary> | |
/// A handler for limiting the number of requests made per minute. | |
/// </summary> | |
public class RateLimitingHandler : DelegatingHandler | |
{ | |
private readonly ConcurrentQueue<DateTimeOffset> _callQueue = new(); |