Skip to content

Commit 130b778

Browse files
committed
no message
1 parent f293612 commit 130b778

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

SubSonic.Core.VisualStudio.Common/SubSonic.Core.VisualStudio.Host/RemoteTransformationHost.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ namespace SubSonic.Core.VisualStudio.Services
1919
[Serializable]
2020
public class RemoteTransformationHost
2121
: ProcessEngineHost
22+
, IServiceProvider
2223
{
2324
private static readonly Dictionary<string, string> KnownAssemblyNames = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
2425
{
@@ -489,5 +490,18 @@ public override string ResolveParameterValue(string directiveId, string processo
489490
}
490491
return null;
491492
}
493+
494+
public object GetService(Type serviceType)
495+
{
496+
if (serviceType.IsAssignableFrom(GetType()))
497+
{
498+
return this;
499+
}
500+
else if (Session.ContainsKey(serviceType.Name))
501+
{
502+
return Session[serviceType.Name];
503+
}
504+
return default;
505+
}
492506
}
493507
}

0 commit comments

Comments
 (0)