public static void RegisterShim(IShim shim) { lock (_syncLock) { CleanupShims(); _shims.Add(new Weak<IShim>(shim)); shim.HostContainer = _hostContainer; } }
public static void RegisterShim(IShim shim) { lock (_syncLock) { CleanupShims(); _shims.Add(new Weak <IShim>(shim)); shim.HostContainer = _hostContainer; } }
public void Shim_Setup() { _shim = new Shim(); _shim.Vertical = VerticalAlignment.Center; }
/// <summary> /// Constructs a proxy instance. /// </summary> /// <param name="serviceContractInterfaceName">An assembly-qualified service contract name.</param> /// <param name="useServerSideShim">True to use server-side shim, false for client-side.</param> public JsmlServiceProxy(string serviceContractInterfaceName, bool useServerSideShim) { _serviceContractName = serviceContractInterfaceName; _shim = useServerSideShim ? (IShim) new ServerSideShim() : new ClientSideShim(); }
public void Shim_Setup() { _shim = new Shim(); _shim.Vertical = VerticalAlignment.Bottom; }
private IModule ResolveShimModule(IEnumerable<string> subFolders, IShim shim) { var serializer = new JavaScriptSerializer(); string content = null; var dependencies = shim .Dependencies .OrEmpty() .Select(d => this.Resolve(subFolders, d)) .ToList(); var fileName = this.GetModuleFileName(this.GetModulePath(shim.Id)); if (this.fileSystem.FileExists(fileName)) { content = fileSystem.ReadToEnd(fileName); content = string.Format( "define({0}, {1}, function() {{ {2}; return {3}; }});", serializer.Serialize(shim.Id), serializer.Serialize(dependencies.Select(d => d.Id)), content, shim.Export); } return new Module { Id = shim.Id, Dependencies = dependencies, Content = content }; }
public void ShimTests_Setup() { _shim = new Shim(); }
public void Shim_Setup() { _shim = new Shim(); _shim.Horizontal = HorizontalAlignment.Center; }
// For testing internal PrettyTextWriterTraceListener(string fileName, IShim shim) #if NETFRAMEWORK : base(GetFullPath(fileName, shim)) { }
public void ShimTests_HorizontalRight_Setup() { _shim = new Shim(); _shim.Horizontal = HorizontalAlignment.Right; }