public static TcpStream Create(string server = null, int port = 80) { var tcpStream = TikoContainer.Resolve <TcpStream>(); tcpStream.Initialize(server, port); return(tcpStream); }
public static HttpClient Create() { var httpClient = TikoContainer.Resolve <HttpClient>(); httpClient.Initialize(); return(httpClient); }
public static FileStream Create(string path, FileMode mode, FileAccess access, FileShare share, int bufferSize) { var fileStream = TikoContainer.Resolve <FileStream> (); fileStream.Initialize(path, mode, access, share, bufferSize); return(fileStream); }
public static Timer Create(TimeSpan interval) { var timer = TikoContainer.Resolve <Timer>(); timer.Initialize(interval); return(timer); }
public static Timer Create() { var timer = TikoContainer.Resolve <Timer>(); timer.Initialize(); return(timer); }
public static FileInfo Create(PathInfo location, string fileName) { var fileInfo = TikoContainer.Resolve <FileInfo>().Clone(); fileInfo.Initialize(location, fileName); return(fileInfo); }
public static RNGCryptoServiceProvider Create() { var cryptoServiceProvider = TikoContainer.Resolve <RNGCryptoServiceProvider> (); cryptoServiceProvider.Initialize(); return(cryptoServiceProvider); }
public static FileStream Create(FileInfo info, FileMode access) { var fileStream = TikoContainer.Resolve <FileStream>(); fileStream.Initialize(info, access); return(fileStream); }
public static PathInfo Create(PathInfo location, params string[] sublocation) { var storageInfo = TikoContainer.Resolve <PathInfo>().Clone(); storageInfo.Initialize(location, sublocation); return(storageInfo); }
public static SeedGenerator Create() { return(TikoContainer.Resolve <SeedGenerator>()); }