public void AddResource(string sessionId, string fileName, Stream data) { ResourceSessionDirector director = m_activeSessionManager.GetDirectorBySessionId(sessionId); director.AddResourceAndFillResourceTypeByExtension(fileName, data); }
public void AddResource(UploadResourceContract resourceInfoSkeleton) { ResourceSessionDirector director = GetDirectorBySessionId(resourceInfoSkeleton.SessionId); director.AddResourceAndFillResourceTypeByExtension(resourceInfoSkeleton.FileName, resourceInfoSkeleton.Data); }