Giter VIP home page Giter VIP logo

xside-extensions's Introduction

Xside Extensions

Actually this documentation is in progress. Some of the features aren't described in the Wiki

NuGet

The NuGet page is https://www.nuget.org/packages/XSide.System.Extensions/ To install it, from the Package Manager Console, run:

PM> Install-Package XSide.System.Extensions

Usage

The toolbox has only one namespace: System.Extensions. Adding a using to this namespace all the extensions will be available.

using System;
using System.Linq;
...
using System.Extensions;
...

namespace My.Namespace
{
    class Program
    {
    }
}

Features

WIP

xside-extensions's People

Contributors

gncabrera avatar

xside-extensions's Issues

Error when trying to get an existing key in DefaultConfiguration

When trying to get a non-existing key an exception is thrown. The correct behaviour should be:

If a config flag "BreakOnNotFoundKeys" is true, it should throw an exception. If set to false it should return the default value.

Value cannot be null.
Parameter name: The configuration wasn't loaded correctly

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: The configuration wasn't loaded correctly

Source Error:

Line 10: public class LuneraConfiguration
Line 11: {
Line 12: public static bool EnableWebAPITracing { get { return DefaultConfiguration.GetAppSettingsValue("EnableTracing", false); } }
Line 13: }
Line 14: }

Source File: d:\Projects\Brad\Lunera\Code\WebAppCommon\LuneraConfiguration.cs Line: 12

Stack Trace:

[ArgumentNullException: Value cannot be null.
Parameter name: The configuration wasn't loaded correctly]
System.Extensions.ObjectChecker.IsNotNull(Object obj, String paramName, String message) +122
System.Extensions.DefaultConfiguration.GetAppSettingsValue(String key, T defaultValue) +98

[ConfigurationErrorsException: An error has ocurred while trying to obtain a key]
System.Extensions.DefaultConfiguration.HandleException(Exception e) +93
System.Extensions.DefaultConfiguration.GetAppSettingsValue(String key, T defaultValue) +310
WebAppCommon.LuneraConfiguration.get_EnableWebAPITracing() in d:\Projects\Brad\Lunera\Code\WebAppCommon\LuneraConfiguration.cs:12
LuneraAPI.WebApiConfig.Register(HttpConfiguration config) in d:\Projects\Brad\Lunera\Code\LuneraAPI\App_Start\WebApiConfig.cs:41
System.Web.Http.GlobalConfiguration.Configure(Action`1 configurationCallback) +124
LuneraAPI.WebApiApplication.Application_Start() in d:\Projects\Brad\Lunera\Code\LuneraAPI\Global.asax.cs:27

[HttpException (0x80004005): An error has ocurred while trying to obtain a key]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +9937701
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296

[HttpException (0x80004005): An error has ocurred while trying to obtain a key]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9951956
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254

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.