Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static string Get()
- {
- var entryAssembly = Assembly.GetEntryAssembly();
- if (entryAssembly != null && entryAssembly.EntryPoint != null)
- {
- return entryAssembly.EntryPoint.ReflectedType.Namespace ??
- entryAssembly.EntryPoint.ReflectedType.Assembly.GetName().Name;
- }
- throw new InvalidOperationException(
- "No endpoint name could be generated, please specify your own convention using Configure.DefineEndpointName(...)");
- }
Add Comment
Please, Sign In to add comment