public void SetData(string data) { using (var stringInputStream = Xpcom.CreateInstance2 <nsIStringInputStream>(Contracts.StringInputStream)) { stringInputStream.Instance.SetData(data, data.Length); _mimeInputStream.SetData(stringInputStream.Instance); } }
public void TestClassInfoSystemPrincipal() { var item = Xpcom.CreateInstance2 <nsIPrincipal>(Contracts.SystemPrincipal); var classInfo = item.GetClassInfo(); Assert.IsNotNull(classInfo); }
public void TestClassInfoException() { var item = Xpcom.CreateInstance2 <nsIException>(Contracts.Exception); var classInfo = item.GetClassInfo(); Assert.IsNotNull(classInfo); }
public StorageStream() { _storageStream = Xpcom.CreateInstance2 <nsIStorageStream>(Contracts.StorageStream); _storageStream.Instance.Init(1024 * 32, 1024 * 1024 * 16); }
public WinTaskbar() { _winTaskbar = Xpcom.CreateInstance2 <nsIWinTaskbar>(Contracts.WindowsTaskbar); }
public ZipReader() { _zipReader = Xpcom.CreateInstance2 <nsIZipReader>(Contracts.ZipReader); }
public DomParser() { _domParser = Xpcom.CreateInstance2 <nsIDOMParser>(Contracts.DomParser); }
public StreamListenerTee() { _streamListenerTee = Xpcom.CreateInstance2 <nsIStreamListenerTee>(Contracts.StreamListenerTee); _requestObserver.Stopped += OnStopped; }
public ImgContainer() { _container = Xpcom.CreateInstance2 <imgIContainer>(Contracts.ImageContainer); }
public CryptoHash(HashAlgorithm algorithm) { _cryptoHash = Xpcom.CreateInstance2 <nsICryptoHash>(Contracts.Hash); _cryptoHash.Instance.Init((uint)algorithm); }