This repository has been archived by the owner on Jan 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial refactoring around registrations
- Loading branch information
Showing
16 changed files
with
116 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,12 @@ | ||
namespace Nancy.Bootstrapper | ||
{ | ||
using System.Collections.Generic; | ||
using System; | ||
|
||
/// <summary> | ||
/// Provides a hook to perform registrations during application startup. | ||
/// </summary> | ||
public interface IApplicationRegistrations | ||
[Obsolete("IApplicationRegistrations is now obsolete, please use IRegistrations instead.")] | ||
public interface IApplicationRegistrations : IRegistrations | ||
{ | ||
/// <summary> | ||
/// Gets the type registrations to register for this startup task | ||
/// </summary> | ||
IEnumerable<TypeRegistration> TypeRegistrations { get; } | ||
|
||
/// <summary> | ||
/// Gets the collection registrations to register for this startup task | ||
/// </summary> | ||
IEnumerable<CollectionTypeRegistration> CollectionTypeRegistrations { get; } | ||
|
||
/// <summary> | ||
/// Gets the instance registrations to register for this startup task | ||
/// </summary> | ||
IEnumerable<InstanceRegistration> InstanceRegistrations { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
namespace Nancy.Bootstrapper | ||
{ | ||
using System.Collections.Generic; | ||
|
||
/// <summary> | ||
/// Provides a hook to perform registrations during application startup. | ||
/// </summary> | ||
public interface IRegistrations | ||
{ | ||
/// <summary> | ||
/// Gets the type registrations to register for this startup task | ||
/// </summary> | ||
IEnumerable<TypeRegistration> TypeRegistrations { get; } | ||
|
||
/// <summary> | ||
/// Gets the collection registrations to register for this startup task | ||
/// </summary> | ||
IEnumerable<CollectionTypeRegistration> CollectionTypeRegistrations { get; } | ||
|
||
/// <summary> | ||
/// Gets the instance registrations to register for this startup task | ||
/// </summary> | ||
IEnumerable<InstanceRegistration> InstanceRegistrations { get; } | ||
} | ||
} |
Oops, something went wrong.
21c2f00
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@grumpydev I just tried to update my lightlies since the
Pre908
version ofNancy
is no longer listed. The issue with that is not every package has been updated that this commit touched, such asNancy.Validation.*
andNancy.Viewengines.*
. Because of that theAppDomainAssemblyTypeScanner
keeps crashing saying it can't findNancy.Bootstrapper.ApplicationRegistrations
. Any chance of forcing new builds to myget to fix this?21c2f00
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@grumpydev After looking into this some more it turns out NuGet is just being a pain and saying
Pre908
is newer thanPre1355
. This is why the UI isn't showing the1xxx
builds. It's also why MyGet doesn't list them as the most current.My other issue is that the Structuremap bootstrapper isn't being built against the refactored base class yet.
For now I'm reverting back to the older pre release builds. That is unless there's an example of how to bootstrap TinyIoC in my OWIN startup class 😄
21c2f00
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xt0rted yeah, I manually delisted the older packages for some of the main ones but lost the will to live so didn't do them all :) I needed this PR pulled in before I could update the other bootstrappers, that's my job for this weekend.
Not sure what you mean with the tinyioc comment though.
21c2f00
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been using Structuremap with my other middleware and when I tried switching it out for TinyIoC everything that ran before Nancy worked ok, but once the bootstrapper ran it would crash with various missing dependency errors. Now that I cleaned up the mixed nightly versions I'll give it another try.
21c2f00
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xt0rted : all the bootstrappers are now updated