Code Monkey home page Code Monkey logo

elect's Introduction

Hi There

Hi, I'm Top Nguyen, a passionate self-taught .NET Developer and Product Manager 🚀 from Viet Nam.

👻 Contact Me

☠️ My Skill Set

Frontend
JavaScript Jquery HTML5 CSS3 Bootstrap Sass Less
Backend
C# .NET .NET Core Redis SQL Server PostgreSql Elastic Kibana Kafka
DevOps
AWS Azure Google Cloud Jaeger Consul Grafana Docker Git Jenkins Linux

👀 GitHub Stats

topnguyen topnguyen

If you like what I do, please consider to buy me a coffee 🥺👉👈

Buy Me A Coffee

elect's People

Contributors

dinhnguyensts avatar imgbotapp avatar topnguyen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

elect's Issues

Issue when using sub application on IIS

Hi, I'm currently hosting my Net core web app into IIS. However, I create a sub application under default website and provide it an Alias name instead of creating a new one.
Then it got this issue because the Url is incorrect.
I'm using Elect.Web.Swagger v3.1.5
image
The request url should start with http://localhost/Api/ (Api here is the alias that I named it)

Elect.Notification.OneSignal CancelAsync AppId not found

Hi @topnguyen

I was using your library to communicate sending push notifications to OnSignal, which I am able to do with the CreateAsync method. However, when I try to cancel a scheduled notification in OneSignal I get the following error message:

"app_id not found. You may be missing a Content-Type: application/json header."

I have tried both overloads of the method and both return me the same error above.

await _oneSignal.CancelAsync(dbObj.OneSignalId, _appSettings.OneSignalSettings.AppId);

await _oneSignal.CancelAsync(dbObj.OneSignalId, _appSettings.OneSignalSettings.AppId, _appSettings.OneSignalSettings.ApiKey);

Not working with ModelMetaDataType Attribute

I am using Elect.Web.DataTable to generate datatable response.

I have a ef core generated class like this

public partial class Employee
{
       public Employee()
        {
            EmpSalary = new HashSet<EmpSalary>();
            Loan = new HashSet<Loan>();
            PfContribution = new HashSet<PfContribution>();
        }
        public long EmpId { get; set; }

        public string EmpFirstName { get; set; }
        
        public string EmpLastName { get; set; }
        
        public string EmpStreet { get; set; }
        
        public string EmpCity { get; set; }
}

And decorated properties of this class like this

[ModelMetadataType(typeof(IEmployeeMetadata))]
    public partial class Employee :IEmployeeMetadata
    {
        [DataTable(DisplayName = "Name")]
        public string FullName { get { return this.EmpFirstName + " " + this.EmpLastName; } }
    }

    public interface IEmployeeMetadata
    {
        [DataTable(IsVisible = false)]
        long EmpId { get; set; }

        [DataTable(DisplayName = " First Name")]
        [DisplayName("First Name")]
        string EmpFirstName { get; set; }
    }

DisplayName attribute on property "EmpFirstName" works good on view page with @Html.EditorFor, but DataTable attributes are not working.

Documentation for Elect.Notification.OneSignal

Could you please provide a simple example of how to use this? It would be much appreciated.

Edit: Actually I think the issue I am having is with Autofac registrations. I can use your lib in my API layer but one layer down in my Infrastructure layer Autofac can't find it.

Should it be possible to do something like this? builder.RegisterType<ElectOneSignalNotification>().As<IElectOneSignalNotification>()

Không thể lấy được giờ coordinated universal time

Chào anh top
Em có tham khảo elect về việc sử dụng packet TzConverter để fix lỗi về time zone khi deploy trên linux .
Sau khi deploy thì em phát hiện trong log file có excepition . Báo rằng ko tìm thấy time zone coordinated universal time :D . (funny)
Anh có thể copy "Coordinated Universal Time" để test method DateTimeHelper.GetTimeZoneInfo("Coordinated Universal Time") .
Em hiện tại hard code if else thôi chưa có ý tưởng để fix , có lẽ bảo thằng viết TzConverter nó fix. :D
Nó chính là giờ UTC múi giờ +0.00 :D . Buồn cười haha
Thank anh .

Could not find an IRouter associated with the ActionContext.

I have done everything step by step. it gives the exception related to routing. it gives the exception in the Index view in below line
// Get model
var model = Html.DataTableModel("datatable_sample", (HomeController controller) => controller.GetDataTable(null));

Swagger

How Swagger components are set to require verification of tokens.

Duplicate Profile

Gửi bạn,
Mình có sử dụng Elect AutoMapper nhưng khi khai báo xong toàn bị báo :
AutoMapper.DuplicateTypeMapConfigurationException
HResult=0x80131500
Message=The following type maps were found in multiple profiles:

Khi mình kiểm tra lại các profile thì ko bị trùng. Vậy hi vọng có thể nhờ bạn support mình. Cảm ơn

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.