void StartExtensions(ISquiggleContext context) { foreach (IExtension extension in Extensions) { extension.Start(context); } }
public override async Task <IDictionary <string, object> > LaunchInviteUI(ISquiggleContext context, IChatWindow window) { string fileName = String.Format("Screenshot_{0:yyMMddHHmmss}.jpg", DateTime.Now); var chatWindow = ((Window)window); chatWindow.WindowState = WindowState.Minimized; await Task.Delay(1.Seconds()); Stream stream = CaptureScreen(); window.Restore(); var args = new Dictionary <string, object>() { { "name", fileName }, { "content", stream }, { "size", stream.Length } }; stream.Seek(0, SeekOrigin.Begin); return(args); }
public Task <IDictionary <string, object> > LaunchInviteUI(ISquiggleContext context, IChatWindow window) { throw new NotImplementedException(); }
public void LoadAll(ISquiggleContext context) { AuthenticationProvider = AuthenticationProvider ?? new DefaultAuthenticationProvider(); StartExtensions(context); }
public HistoryViewer(ISquiggleContext context) : this() { chatHistory.SquiggleContext = context; }