This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) | |
{ | |
// ... Stuff | |
app.Use(async (context, next) => | |
{ | |
if (context.Request.Path.StartsWithSegments(new PathString("/api"))) | |
{ | |
// Let's check if this is an API Call | |
if (context.Request.Headers["ApiKey"].Any()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background:white !important; | |
} | |
#applicationName { | |
color:red !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static async Task<bool> DeferMessage(BrokeredMessage message) | |
{ | |
await message.DeferAsync().ConfigureAwait(false); | |
var client = TopicClient.CreateFromConnectionString(ConnectionString, TopicName); | |
var obj = new DeferredMessageModel { SequenceNumber = message.SequenceNumber }; | |
using (var ms = new MemoryStream()) | |
using (var writer = new StreamWriter(ms)) | |
using (var jsonWriter = new JsonTextWriter(writer)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Go to Radarr and click 'settings' => 'general'. | |
// Open the JavaScript Console in Google Chrome (View => Developer => Javascript Console) | |
// Past the following in. Hit enter and away you go. | |
const key = document.getElementsByClassName('x-api-key')[0].value; | |
if (!key) { | |
alert('Navigate to /settings/general and run again'); | |
} |