Skip to content
dotnet logo

.NET

.NET is a free, cross-platform, open source developer platform for building many different types of applications.

Here are 13,967 public repositories matching this topic...

ahsonkhan
ahsonkhan commented Sep 16, 2019

Along with implementing support for Base64, add tests as well.

string base64String = "ABA=";
using (JsonDocument doc = JsonDocument.Parse($"{{\"data\":\"{base64String}\"}}"))
{
    JsonElement root = doc.RootElement;
    JsonElement data = root.GetProperty("data");
    byte[] base64Bytes = data.GetBytesFromBase64(); // {0, 16}
    Console.WriteLine(base64Bytes.Length); // Returns 2
mterhorst
mterhorst commented Oct 4, 2019

Describe the bug

When this is set.

KestrelServerOptions.AllowSynchronousIO = false;

The following code throws exception System.InvalidOperationException: Synchronous operations are disallowed. Call ReadAsync or set AllowSynchronousIO to true instead..

[HttpPost("~/example")]
public async Task<IActionResult> Example()
{
	using (var sr = new HttpRequestStreamReader(Re
react-native-windows
adamgorMSFT
adamgorMSFT commented Aug 27, 2019

https://github.com/microsoft/react-native-windows/blob/968d96aa9a3c4c2bb54762a929425729b29a99bc/vnext/stubs/double-conversion/double-conversion.h#L117

requested_digits: unreferenced formal parameter
Warning C4100 'requested_digits': unreferenced formal parameter (compiling source file \node_modules\react-native-windows\stubs\double-conversion\double-conversion.h 117

inconseque

messani
messani commented Aug 30, 2019

Steps to Reproduce

  1. Code
using System;

namespace Test
{
  class MainClass
  {
    public static void Main(string[] args)
    {
      throw new Exception("blabla");
    }
  }
}
  1. Run:
    MONO_DEBUG=suspend-on-unhandled mono ./Test.exe

Current Behavior

Unhandled Exception:
System.Exception: blabla
at Test.MainClass.Main (System.String[] args) [0x000

sandersaares
sandersaares commented Mar 20, 2019

I was confused to find that my timeout policy was not throwing a TimeoutRejectedException on timeout.

static void Dingus(CancellationToken ct)
{
    Console.WriteLine($"It's 12 o'clock and all is well");

    // Just wait until cancelled.
    ct.WaitHandle.WaitOne();
}

It appears that using the optimistic strategy, it is necessary to actually throw `OperationCancelled

CESARDELATORRE
CESARDELATORRE commented Sep 6, 2019

As mentioned by Diego, these additions would help by simplifying the API usage for users even further and it should be pretty easy to implement for us: 👍

@divega commented: dotnet/machinelearning-samples#617 (review)

@CESARDELATORRE, I did a deferred review. The experience seems pretty good.

1:
And I agree with you that it could be even better

simonech
simonech commented Jun 24, 2019

For each Job, it adds plots about density, cumulative mean, and so on. But two files are named BenchmarkDotNet.Artifacts/results/MyBench.Sleeps-Time50--density.png and BenchmarkDotNet.Artifacts/results/MyBench.Sleeps-Time50--facetDensity.png, with the -- instead of single. Like some iteration variable is empty (since later there are names with -Default-
![image](https://user-images.github

MartinCarpentier
MartinCarpentier commented Dec 29, 2018

Expected Behavior / New Feature

Support sticky sessions for ServiceDiscoveryProviders

Actual Behavior / Motivation for New Feature

When using websockets with ocelot in a distributed system, problem can arise since ocelot, as far as i know, doesn't support sticky sessions when working with service discovery providers.

The functionality could be great if it could work with both consul

mmillican
mmillican commented May 27, 2016

I'm attempting to use WMI monitoring in Opserver on a domain environment. Our sys-admin created a domain user which has permissions for WMI. At first, I tried setting the app pool to run as the specified domain user, but still wasn't seeing any data.

After poking around in the config classes, I updated my DashboardSettings.json WMI section to

"wmi": {
     "nodes": [ "web01", "web02", 
Aaronontheweb
Aaronontheweb commented Sep 26, 2019

Version: N/A

For users who are interested in using Akka.Persistence.Query, CQRS, EventSourcing, projections, and so forth - the only practical way to combine data from multiple persistent entities without knowing in advance what those entity IDs are is to use Akka.Persistence.Query's EventsByTag queries.

Unfortunately, if you start writing to Akka.Persistence without using any tags at all,

You can’t perform that action at this time.