public static void Start(MySecureString streamlootsId) { Task.Run(async() => { IStreamlootsService service = new StreamlootsService(streamlootsId); await service.Connect(); while (true) { await Task.Delay(60000); } }); }
public CloudinaryClient(string imagePath, MySecureString cloudinaryUrl) { this.imagePath = imagePath; cloudinary = new Cloudinary(cloudinaryUrl.GetStr()); }
public void InitializeClient(MySecureString bearerToken) { client.DefaultRequestHeaders.Add("authorization", $"Bearer {bearerToken.GetStr()}"); }
public LifxService(MySecureString bearerToken) { InitializeClient(bearerToken); }
public StreamlootsClient(MySecureString bearerToken) { client.DefaultRequestHeaders.Add("authorization", $"Bearer {bearerToken.GetStr()}"); //TestApi(); }
public StreamlootsService(MySecureString streamlootsID) { this.streamlootsID = streamlootsID; }