bbaia / connect-owin

Node.js connect middleware for .NET using OWIN
Apache License 2.0
46 stars 6 forks source link

ConfigurationManager and path to app config #2

Closed jamesholcomb closed 10 years ago

jamesholcomb commented 10 years ago

Executing this code in my Configuration(IAppBuilder app)

AppDomain.CurrentDomain.SetupInformation.ConfigurationFile

returns

C:\Program Files\nodejs\node.exe.config

I could override where the ConfigurationManager looks for my config file, but I'm wondering if it's possible for the middleware to default this based on the value in the input assemblyFile? For example:

owin({
    assemblyFile: 'c:\\dist\\MyAssembly.dll'
});

would yield

c:\dist\MyAssembly.dll.config

chriseldredge commented 10 years ago

I believe this would require support in Edge, and there's a similar issue/request in https://github.com/tjanczuk/edge/issues/131

bbaia commented 10 years ago

@chriseldredge answered to the question