Esempio n. 1
0
        public async Task UpdateVersion(string source)
        {
            //_mec.brand.Add(new PS.Database.Models.db_Mechant.Tblbrand() { Brandname = "ccccc" });

            // _mec.SaveChangesAsync();


            //await _mec.SaveChangesAsync(new CancellationToken() { });
            //_mec.Tblbrand.Add(new PS.Database.Models.db_Mechant.Tblbrand() { Brandname="안녕"  });
            //await _mec.SaveChangesAsync();
            //PS.Applications.Brand.Commands.CreateCommand.Request data = new PS.Applications.Brand.Commands.CreateCommand.Request();

            //PS.Application.Commands.Brand.Commands.GetBrands.SeedData data = new PS.Applications.Common.Base.HandlerBase<PS.Application.Commands.Brand.Commands.GetBrands.Request, PS.Application.Commands.Brand.Commands.GetBrands.Response>.SeedData();
            //data.Data.dddd = "ccc";

            //var rt =  await _mediator.Send(data);


            return;

            CreateComand.Request re = new CreateComand.Request()
            {
                name = source, memo = "zz"
            };


            //Log.login("나오니?");
            //_logger.LogWarning("경고");
            ///_logger.LogDebug("은녕 ");
            //_app.brand.Add(new PS.Domain.Entities.tblbrand() { Brandname="안녕" });
            //CancellationToken cto = new CancellationToken();
            //await _app.SaveChangesAsync(cto);
            await Task.Delay(1000);
        }
        public async Task <string> GetTest(string message)
        {
            CreateComand.Request re = new CreateComand.Request()
            {
                name = message, memo = "zz"
            };
            await _mediator.Send(re);

            await Task.Delay(1000);

            return("완료");
        }
        public async Task SayStreamAsync(string message)
        {
            //await stream.OnNextAsync(message);
            CreateComand.Request re = new CreateComand.Request()
            {
                name = message, memo = "zz"
            };
            await _mediator.Send(re);

            //stream.
            //stream.OnNextBatchAsync()
            //await Task.Delay(1000);
            //await stream.OnCompletedAsync();
        }