Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 03 12:11
    dotnet-maestro[bot] commented #1813
  • Jun 03 12:11

    dotnet-maestro[bot] on darc-master-a926ae60-afdc-46d8-aabc-bb225655c15e

    (compare)

  • Jun 03 12:11

    dotnet-maestro[bot] on master

    Update dependencies from https:… (compare)

  • Jun 03 12:11
    dotnet-maestro[bot] closed #1813
  • Jun 03 12:06
    dotnet-maestro[bot] opened #1813
  • Jun 03 12:06

    dotnet-maestro[bot] on darc-master-a926ae60-afdc-46d8-aabc-bb225655c15e

    Update dependencies from https:… (compare)

  • Jun 03 12:05

    dotnet-maestro[bot] on darc-master-a926ae60-afdc-46d8-aabc-bb225655c15e

    (compare)

  • May 30 11:54
    jenergm commented #279
  • May 29 14:59
    tmenier commented #1492
  • May 29 04:58
    danroth27 updated the wiki
  • May 28 14:25
    lewing commented #1807
  • May 27 19:13
    matheusjulio96 commented #1652
  • May 27 13:30
    springy76 commented #306
  • May 27 13:13
    SQL-MisterMagoo commented #306
  • May 27 13:07
    springy76 commented #306
  • May 27 13:06
    springy76 commented #306
  • May 27 12:24
    SQL-MisterMagoo commented #306
  • May 27 12:20
    springy76 commented #306
  • May 27 12:10
    dotnet-maestro[bot] commented #1812
  • May 27 12:10

    dotnet-maestro[bot] on darc-master-e3474f54-f92f-4c3f-b116-ed9bdfe9754d

    (compare)

jbomhold3
@jbomhold3
Can tell how much I work with serial devices
wartek69
@wartek69
:D
Howard Ying
@howardgod

Hi, regarding to JSRuntime invokeAsync, how to pass JSON object as parameter?
e.g. for diff2html js lib,

var diffHtml = Diff2Html.getPrettyHtml(
  '<Unified Diff String>',
  {inputFormat: 'diff', showFiles: true, matching: 'lines', outputFormat: 'side-by-side'}
);

The second parameter of getPrettyHtml function is what I got problem with.

jbomhold3
@jbomhold3
don't think you can pass an anonymous object directly.. But you can convert it to a json string and pass it that way.
Howard Ying
@howardgod
I have using simplejson to build the json string and pass it in, it fails
Peter Morris
@mrpmorris
Updated Blazor FluentValidation
Shaun Walker
@sbwalker_twitter
@ysmoradi Oqtane can run on server-side and client-side Blazor. I accomplished this by using conditional compilations and having 2 solution configurations in Visual Studio. The default "Debug" configuration is server-side and if I want to run in client-side mode then I switch to "Wasm" configuration and rebuild/run. This allows me to develop/debug server-side and then test client-side. The only files affected by conditional compilation are startup.cs in the client and server project. https://github.com/oqtane/oqtane.framework
MarkStega
@MarkStega
@SQL-MisterMagoo @chrissainty Anyone want to take bets on whether embedded resources will work in P9? https://github.com/aspnet/AspNetCore/issues/13122#event-2577313864
jbomhold3
@jbomhold3
when you catch a null ref error 2 years after you wrote a function idk. Not sure how it never showed its face until now lol
masonwheeler
@masonwheeler
Yeah, "how did this ever work?" errors are always fun.
Chris Sainty
@chrissainty
@MarkStega I’m not going to hold my breath but I really hope they do!
jbomhold3
@jbomhold3
any grpc guys in here?
Chris Sainty
@chrissainty
@jbomhold3 I’ve done a little bit of playing with it
jbomhold3
@jbomhold3
doing a stream and the client is complaining about grpc-status not being sent after the data is complete.. i'm sure its something stupid simple i'm missing
http2 not on by default even in 3.0?
Chris Sainty
@chrissainty
I don’t think it’s on by default for the HttpClient
jbomhold3
@jbomhold3
exact error is System.InvalidOperationException: 'Response did not have a grpc-status trailer.'
Chris Sainty
@chrissainty
But I’m assuming you’re using the generated proxy stuff?
jbomhold3
@jbomhold3
as base class yes like the example
Chris Sainty
@chrissainty
This looks like it might be of interest dotnet/corefx#37511
jbomhold3
@jbomhold3
I get the data it just seems like it does not know where to stop..
   public override async Task ListAllowedTowns(Empty request, IServerStreamWriter<TownMessage> responseStream, ServerCallContext context)
        {
            var towns = await _db.Towns.ToListAsync();

            foreach (var town in towns)
            {
                var res = new TownMessage();
                res.CopyPropertiesFrom(town);
                Console.WriteLine(res.ToString());
                await responseStream.WriteAsync(res);
            }
        }
client
 static async Task Main(string[] args)
        {
            var httpClient = new HttpClient();
            httpClient.BaseAddress = new Uri("https://localhost:44316");
            var client = GrpcClient.Create<Towns.TownsClient>(httpClient);

            using (var call = client.ListAllowedTowns(new Empty()))
            {

                while (await call.ResponseStream.MoveNext(CancellationToken.None))
                {
                    TownMessage feature = call.ResponseStream.Current;
                    Console.WriteLine("Received " + feature.ToString());
                }
            }

        }
Chris Sainty
@chrissainty
From my extremely limited knowledge, everything looks ok
Sorry I can’t be more help
jbomhold3
@jbomhold3
server is complaining it's not supported the client is its need.. will try that fix it should have been in p7
joshlang
@joshlang
Won't work on a mac iirc
jbomhold3
@jbomhold3
4 hours... and guess what
IISExpress........
Anyone else feel dirty putting your api with the sever side front end.. it's one of the advantages but feels so wrong
AppPackLtd
@AppPackLtd
I usually put the API in a separate project
Daniel Bowen
@DanielRBowen
The binded value doesn't update the parent value. My Vue version works right
Vue: https://jsfiddle.net/DollarsRichBread/76t5rm8f/
Blazor: https://blazorfiddle.com/s/1nme25pb
Anybody knows how to a Blazor component to work much like Vues v-model?
Chris Sainty
@chrissainty
@DanielRBowen Yes, you need to use an event on the child component which the parent can bind to
oh sorry I didn’t see that you’ve already got an EventCallBack in there
srowan
@srowan
@DanielRBowen something towards this: https://blazorfiddle.com/s/33jp81ez
you weren't calling onchange
Chris Sainty
@chrissainty
@srowan beat me to it :)
srowan
@srowan
probably other ways to do it, and definitely gets trickier if you actually want to bind to the proper data type (in this case a datetime probably)
some tips: 1) no matter how much you want the select to bind to other types of data (objects, datetimes,numbers, etc) it can't - it can only work in terms of strings, so you'll have to handle the mapping
2) once you get past (1) think about whether you need full 2 way binding (i.e. ability to change the value from the parent after initialization) cause that makes it trickeir still
but, just binding to a list of strings and selecting one is quite easy and the above approach should work
jbomhold3
@jbomhold3
#1 isn't completely true
just have to test and cast back to your type.
srowan
@srowan
yea that's what I mean, you have to convert to/from string
I've found select to be one of the more challenging form components to make generic (i.e. wrapper component similar to blazorstrap)
binding to objects vs primitives, custom text mapping, tracking references when binding to objects, grandfathering in Value if it doesnt appear in the list of options (or not), ability to allow empty selection, etc
Thomas Hop
@hopstarDev_twitter
Does anyone know why i get a Member with the same name is already declared on every varaible and also an Ambiious reference?